129 lines
3.3 KiB
XML
129 lines
3.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- 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>
|