Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,79 +1,128 @@
<?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>
<!-- Module name -->
<module>module</module>
<!-- Module supporting database table -->
<table>module</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>module,account</dependancy>
<!-- DB cache in seconds -->
<cache>0</cache>
<!-- Default order_by field for SQL queries -->
<order_by>name</order_by>
<!-- Default SQL limit for SQL queries -->
<limit>25</limit>
<!-- Schema version (used to determine if the schema has change during upgrades) -->
<version>0</version>
<!-- Database indexes -->
<index>
<parent>parent_id</parent>
<menu_display>menu_display</menu_display>
<displays>status,menu_display</displays>
</index>
<!-- Database fields -->
<field>
<!-- Record ID -->
<id>
<index>1</index>
<type>I4</type>
<unique>1</unique>
</id>
<!-- Site ID -->
<site_id>
<index>1</index>
<type>I4</type>
</site_id>
<!-- Date record created -->
<date_orig>
<convert>date-now</convert>
<display>Date Created</display>
<type>I8</type>
</date_orig>
<!-- Date record updated -->
<date_last>
<convert>date-now</convert>
<display>Date Updated</display>
<type>I8</type>
</date_last>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<parent_id>
<display>Parent</display>
<type>I4</type>
<index>1</index>
</parent_id>
<name>
<display>Name</display>
<type>C(128)</type>
<min_len>3</min_len>
<max_len>128</max_len>
<validate>any</validate>
<unique>1</unique>
</name>
<notes>
<display>Notes</display>
<type>X2</type>
</notes>
<menu_display>
<display>Menu</display>
<description>Display on Menu</description>
<type>L</type>
</menu_display>
</field>
<!-- 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>
<!-- Method triggers -->
<trigger>
<method>
<success>module:method</success>
<failure>module:method</failure>
</method>
</trigger>
<!-- Template page display titles -->
<title>
<add>Add Module</add>
<install>Install Module</install>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<notes>
<field>notes</field>
</notes>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>

View File

@@ -1,63 +1,84 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<install>
<!-- Tree Menu Module Properties -->
<module_properties>
<name>module</name>
<parent>setup</parent>
<notes><![CDATA[Module Control..]]></notes>
<!-- MODULE Dependancy, this module wont be installed if the dependant modules dont exist -->
<dependancy></dependancy>
<!-- Translated display to use on the tree -->
<display>Modules</display>
<!-- Display a module in the menu tree -->
<menu_display>1</menu_display>
<!-- MODULE Name -->
<name>module</name>
<!-- MODULE Notes, these notes show up in the modules table, as a description of the module -->
<notes><![CDATA[This plugin enables in the installation of modules]]></notes>
<!-- MODULE Parent, the parent node in the tree -->
<parent>setup</parent>
<!-- SUB Modules to install with this one -->
<sub_modules></sub_modules>
<!-- MODULE Type (core|base), core modules cannot be deleted, unrecognised types are ignored. -->
<type>core</type>
</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>
<!-- Tree Menu & Module Methods to load, they will be assigned the group permissions on install time, as selected by the user. -->
<module_method>
<add>
<display>Add</display>
<menu_display>1</menu_display>
<name>add</name>
<notes><![CDATA[Add records]]></notes>
</add>
<delete>
<name>delete</name>
<notes><![CDATA[Delete records]]></notes>
</delete>
<search>
<display>List</display>
<menu_display>1</menu_display>
<name>search</name>
<notes><![CDATA[List records]]></notes>
<page><![CDATA[core:search&module=%%&_next_page_one=view]]></page>
</search>
<search_show>
<name>search_show</name>
<notes><![CDATA[Show the results of a search]]></notes>
</search_show>
<update>
<name>update</name>
<notes><![CDATA[Update a record]]></notes>
</update>
<view>
<name>view</name>
<notes><![CDATA[View a record]]></notes>
</view>
<dev_add>
<name>dev_add</name>
<menu_display>1</menu_display>
</dev_add>
<failure>
<name>failure</name>
</failure>
<install>
<display>Install</display>
<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>
<display>Upgrade</display>
<name>upgrade</name>
<page><![CDATA[%%:upgrade]]></page>
<menu_display>1</menu_display>
</upgrade>
<remote_update>
<name>remote_update</name>
</remote_update>
</module_method>
</install>