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/staff_department/staff_department_construct.xml
2008-11-26 14:50:40 -08:00

55 lines
1.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>staff_department</module>
<!-- define the module table name -->
<table>staff_department</table>
<!-- define the module dependancy(s) -->
<dependancy>staff</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 the fields -->
<field>
<id>
<type>I4</type>
<unique>1</unique>
<index>1</index>
</id>
<site_id>
<type>I4</type>
<index>1</index>
</site_id>
<name>
<type>C(32)</type>
<min_len>3</min_len>
<max_len>32</max_len>
</name>
<description>
<type>X2</type>
</description>
<default_staff_id>
<type>I8</type>
<asso_table>staff</asso_table>
<asso_field>nickname</asso_field>
<validate>any</validate>
</default_staff_id>
<contact_display>
<type>L</type>
</contact_display>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>id,site_id,name,description,default_staff_id,contact_display</add>
<update>id,site_id,name,description,default_staff_id,contact_display</update>
<delete>id,site_id,name,description,default_staff_id,contact_display</delete>
<view>id,site_id,name,description,default_staff_id,contact_display</view>
<search>id,site_id,name,description,default_staff_id,contact_display</search>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
</construct>