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
2008-11-26 14:50:40 -08:00

67 lines
2.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>module_method</module>
<!-- define the module table name -->
<table>module_method</table>
<!-- define the module dependancy(s) -->
<dependancy>module</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>
<module>module_id</module>
<menu_display>menu_display</menu_display>
</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>
<module_id>
<type>I4</type>
<asso_table>module</asso_table>
<asso_field>name</asso_field>
<validate>any</validate>
<index>1</index>
</module_id>
<name>
<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>
<type>C(128)</type>
</page>
<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>id,site_id,module_id,name,notes,page,menu_display</add>
<update>id,site_id,module_id,name,notes,page,menu_display</update>
<delete>id,site_id,module_id,name,notes,page,menu_display</delete>
<view>id,site_id,module_id,name,notes,page,menu_display</view>
<search>id,site_id,module_id,name,notes,page,menu_display</search>
<list>id,site_id,module_id,name,notes,page,menu_display</list>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
</construct>