This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/module_method/module_method_construct.xml
2011-05-03 09:49:04 +10:00

108 lines
2.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>module_method</module>
<!-- Module supporting database table -->
<table>module_method</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>module</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>1</version>
<!-- Database indexes -->
<index>
<module>module_id</module>
<menu_display>menu_display</menu_display>
</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>
<module_id>
<display>Module</display>
<type>I4</type>
<asso_table>module</asso_table>
<asso_field>name</asso_field>
<validate>any</validate>
<index>1</index>
</module_id>
<name>
<display>Name</display>
<type>C(64)</type>
<min_len>1</min_len>
<max_len>64</max_len>
<validate>non_numeric</validate>
<convert/>
</name>
<notes>
<type>C2(128)</type>
</notes>
<page>
<html>1</html>
<type>C(128)</type>
</page>
<menu_display>
<display>Menu</display>
<type>L</type>
</menu_display>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>module_id,name,notes,page,menu_display</add>
<delete>id,site_id,module_id,name,notes,page,menu_display</delete>
<list>id,site_id,module_id,name,notes,page,menu_display</list>
<search>id,site_id,module_id,name,notes,page,menu_display</search>
<update>id,site_id,module_id,name,notes,page,menu_display</update>
<view>id,site_id,module_id,name,notes,page,menu_display</view>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add Method</add>
<update_relations>Update Authorisation</update_relations>
<view>Methods</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<module_id>
<field>module_id</field>
</module_id>
<menu_display>
<field>menu_display</field>
<type>bool</type>
<width>15px</width>
</menu_display>
</search_show>
</tpl>
</construct>