Initial Commit of AgileBill Open Source
This commit is contained in:
1441
modules/module/dev.inc.php
Normal file
1441
modules/module/dev.inc.php
Normal file
File diff suppressed because it is too large
Load Diff
1524
modules/module/module.inc.php
Normal file
1524
modules/module/module.inc.php
Normal file
File diff suppressed because it is too large
Load Diff
79
modules/module/module_construct.xml
Normal file
79
modules/module/module_construct.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>module</module>
|
||||
<!-- define the module table name -->
|
||||
<table>module</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy>module,account</dependancy>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>name</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>25</limit>
|
||||
<!-- define database indexes -->
|
||||
<index>
|
||||
<parent>parent_id</parent>
|
||||
<menu_display>menu_display</menu_display>
|
||||
<displays>status,menu_display</displays>
|
||||
</index>
|
||||
<!-- define the fields -->
|
||||
<field>
|
||||
<id>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
<index>1</index>
|
||||
</site_id>
|
||||
<date_orig>
|
||||
<type>I8</type>
|
||||
</date_orig>
|
||||
<date_last>
|
||||
<type>I8</type>
|
||||
</date_last>
|
||||
<parent_id>
|
||||
<type>I4</type>
|
||||
<index>1</index>
|
||||
</parent_id>
|
||||
<name>
|
||||
<type>C(128)</type>
|
||||
<min_len>3</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
<unique>1</unique>
|
||||
</name>
|
||||
<notes>
|
||||
<type>X2</type>
|
||||
</notes>
|
||||
<status>
|
||||
<type>L</type>
|
||||
</status>
|
||||
<menu_display>
|
||||
<type>L</type>
|
||||
</menu_display>
|
||||
</field>
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>
|
||||
<add>name,notes,status,date_orig,date_last,menu_display,parent_id</add>
|
||||
<update>notes,status,date_orig,date_last,menu_display,parent_id</update>
|
||||
<view>id,name,notes,status,date_orig,date_last,menu_display,parent_id</view>
|
||||
<list>id,name,notes,status,date_orig,date_last,menu_display,parent_id</list>
|
||||
<search>id,name,notes,status,date_orig,date_last,menu_display,parent_id</search>
|
||||
<export_excel>id,name,notes,status,date_orig,date_last,menu_display,parent_id</export_excel>
|
||||
<export_xml>id,name,notes,status,date_orig,date_last,menu_display,parent_id</export_xml>
|
||||
<export_pdf>id,name,notes,status</export_pdf>
|
||||
<export_csv>id,name,notes,status,date_orig,date_last,menu_display,parent_id</export_csv>
|
||||
<export_tab>id,name,notes,status,date_orig,date_last,menu_display,parent_id</export_tab>
|
||||
</method>
|
||||
<!-- define the method triggers -->
|
||||
<trigger>
|
||||
<method>
|
||||
<success>module:method</success>
|
||||
<failure>module:method</failure>
|
||||
</method>
|
||||
</trigger>
|
||||
</construct>
|
63
modules/module/module_install.xml
Normal file
63
modules/module/module_install.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<install>
|
||||
<module_properties>
|
||||
<name>module</name>
|
||||
<parent>setup</parent>
|
||||
<notes><![CDATA[Module Control..]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<search>
|
||||
<name>search</name>
|
||||
</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_show>
|
||||
<name>search_show</name>
|
||||
<notes><![CDATA[Allow users to view the search results]]></notes>
|
||||
</search_show>
|
||||
<dev_add>
|
||||
<name>dev_add</name>
|
||||
<menu_display>1</menu_display>
|
||||
</dev_add>
|
||||
<failure>
|
||||
<name>failure</name>
|
||||
</failure>
|
||||
<install>
|
||||
<name>install</name>
|
||||
<notes><![CDATA[Handles the installation of new modules...]]></notes>
|
||||
<page><![CDATA[%%:install]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</install>
|
||||
<translate>
|
||||
<name>translate</name>
|
||||
</translate>
|
||||
<dev_install_gen>
|
||||
<name>dev_install_gen</name>
|
||||
</dev_install_gen>
|
||||
<upgrade>
|
||||
<name>upgrade</name>
|
||||
<page><![CDATA[%%:upgrade]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</upgrade>
|
||||
<remote_update>
|
||||
<name>remote_update</name>
|
||||
</remote_update>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
Reference in New Issue
Block a user