Initial Commit of AgileBill Open Source
This commit is contained in:
15
modules/ticket/auth.inc.php
Normal file
15
modules/ticket/auth.inc.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$auth_methods = Array
|
||||
(
|
||||
Array ('module' => 'ticket', 'method' => 'user_add'),
|
||||
Array ('module' => 'ticket', 'method' => 'user_list'),
|
||||
Array ('module' => 'ticket', 'method' => 'user_view'),
|
||||
Array ('module' => 'ticket', 'method' => 'user_update'),
|
||||
Array ('module' => 'ticket', 'method' => 'user_reply'),
|
||||
Array ('module' => 'ticket', 'method' => 'is_user_auth'),
|
||||
Array ('module' => 'ticket', 'method' => 'is_key_match'),
|
||||
Array ('module' => 'ticket', 'method' => 'pending_verify'),
|
||||
Array ('module' => 'ticket', 'method' => 'static_var'),
|
||||
Array ('module' => 'ticket', 'method' => 'view')
|
||||
);
|
||||
?>
|
2711
modules/ticket/ticket.inc.php
Normal file
2711
modules/ticket/ticket.inc.php
Normal file
File diff suppressed because it is too large
Load Diff
98
modules/ticket/ticket_construct.xml
Normal file
98
modules/ticket/ticket_construct.xml
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<module>ticket</module>
|
||||
<table>ticket</table>
|
||||
<dependancy/>
|
||||
<cache>0</cache>
|
||||
<order_by>status,date_last</order_by>
|
||||
<limit>25</limit>
|
||||
<index>
|
||||
<email>email</email>
|
||||
<piping_unique_id>piping_unique_id</piping_unique_id>
|
||||
<subject>subject</subject>
|
||||
<last_reply>site_id,last_reply</last_reply>
|
||||
<priority>site_id,priority</priority>
|
||||
<staff>site_id,staff_id</staff>
|
||||
<dept>site_id,department_id</dept>
|
||||
<acct>site_id,account_id</acct>
|
||||
<expire>site_id,date_expire</expire>
|
||||
<fulltext_content>subject,body</fulltext_content>
|
||||
<account>account_id</account>
|
||||
<accountsite>site_id,account_id</accountsite>
|
||||
</index>
|
||||
<field>
|
||||
<id>
|
||||
<type>I8</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
<index>1</index>
|
||||
</site_id>
|
||||
<date_orig>
|
||||
<type>I8</type>
|
||||
<convert>date-time</convert>
|
||||
</date_orig>
|
||||
<date_last>
|
||||
<type>I8</type>
|
||||
<convert>date-now</convert>
|
||||
</date_last>
|
||||
<date_expire>
|
||||
<type>I8</type>
|
||||
</date_expire>
|
||||
<account_id>
|
||||
<type>I8</type>
|
||||
<asso_table>account</asso_table>
|
||||
<asso_field>email</asso_field>
|
||||
</account_id>
|
||||
<department_id>
|
||||
<type>I4</type>
|
||||
<asso_table>ticket_department</asso_table>
|
||||
<asso_field>name</asso_field>
|
||||
<validate>any</validate>
|
||||
</department_id>
|
||||
<staff_id>
|
||||
<type>I4</type>
|
||||
<asso_table>staff</asso_table>
|
||||
<asso_field>nickname</asso_field>
|
||||
</staff_id>
|
||||
<status>
|
||||
<type>C(4)</type>
|
||||
<validate>any</validate>
|
||||
</status>
|
||||
<priority>
|
||||
<type>C(4)</type>
|
||||
<validate>any</validate>
|
||||
</priority>
|
||||
<last_reply>
|
||||
<type>C(4)</type>
|
||||
</last_reply>
|
||||
<subject>
|
||||
<type>C(255)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>255</max_len>
|
||||
<validate>any</validate>
|
||||
</subject>
|
||||
<body>
|
||||
<type>X2</type>
|
||||
<validate>any</validate>
|
||||
</body>
|
||||
<piping_unique_id>
|
||||
<type>C(32)</type>
|
||||
</piping_unique_id>
|
||||
<email>
|
||||
<type>C(128)</type>
|
||||
</email>
|
||||
</field>
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>
|
||||
<add>id,site_id,date_orig,date_last,date_expire,account_id,department_id,staff_id,status,priority,subject,body,email,last_reply</add>
|
||||
<update>id,site_id,date_orig,date_last,date_expire,account_id,department_id,staff_id,status,priority,subject,body,email,last_reply</update>
|
||||
<delete>id,site_id,date_orig,date_last,date_expire,account_id,department_id,staff_id,status,priority,subject,body,email,last_reply</delete>
|
||||
<view>id,site_id,date_orig,date_last,date_expire,account_id,department_id,staff_id,status,priority,subject,body,email,last_reply</view>
|
||||
<search>id,site_id,date_orig,date_last,date_expire,account_id,department_id,staff_id,status,priority,subject,body,email,last_reply</search>
|
||||
</method>
|
||||
<!-- define the method triggers -->
|
||||
<trigger>0</trigger>
|
||||
</construct>
|
62
modules/ticket/ticket_install.xml
Normal file
62
modules/ticket/ticket_install.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<install>
|
||||
<module_properties>
|
||||
<name>ticket</name>
|
||||
<parent>ticket</parent>
|
||||
<notes><![CDATA[This is the ticket control module.]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
<dependancy>staff</dependancy>
|
||||
<sub_modules>ticket_department,ticket_message,ticket_attachment</sub_modules>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<search>
|
||||
<name>search</name>
|
||||
<notes><![CDATA[Allow users to view the search form]]></notes>
|
||||
<page><![CDATA[%%:search_form]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</search>
|
||||
<view>
|
||||
<name>view</name>
|
||||
<notes><![CDATA[Allow users to view records]]></notes>
|
||||
<page><![CDATA[core:search&module=%%&_escape=1&_next_page_one=view]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</view>
|
||||
<add>
|
||||
<name>add</name>
|
||||
<notes><![CDATA[Allow users to add records]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
</add>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
</delete>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<search_form>
|
||||
<name>search_form</name>
|
||||
</search_form>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
<notes><![CDATA[Allow users to view the search results]]></notes>
|
||||
</search_show>
|
||||
<reply>
|
||||
<name>reply</name>
|
||||
<notes><![CDATA[Method for staff replies to a ticket]]></notes>
|
||||
</reply>
|
||||
<merge>
|
||||
<name>merge</name>
|
||||
</merge>
|
||||
<overview>
|
||||
<name>overview</name>
|
||||
<menu_display>1</menu_display>
|
||||
<page><![CDATA[%%:main]]></page>
|
||||
</overview>
|
||||
<search_quick>
|
||||
<name>search_quick</name>
|
||||
</search_quick>
|
||||
<search_status>
|
||||
<name>search_status</name>
|
||||
</search_status>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
Reference in New Issue
Block a user