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

98 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- Module name -->
<module>staff_department</module>
<!-- Module supporting database table -->
<table>staff_department</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>staff</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>
</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>
<name>
<display>Department</display>
<type>C(32)</type>
<min_len>3</min_len>
<max_len>32</max_len>
<validate>any</validate>
</name>
<description>
<display>Description</display>
<type>X2</type>
</description>
<default_staff_id>
<display>Default Staff</display>
<type>I8</type>
<asso_table>staff</asso_table>
<asso_field>nickname</asso_field>
<validate>any</validate>
</default_staff_id>
<contact_display>
2010-11-29 22:41:08 +00:00
<display>Show Users on Contact Form</display>
2009-08-03 04:10:16 +00:00
<type>L</type>
</contact_display>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
2010-11-29 22:41:08 +00:00
<add>name,description,default_staff_id,contact_display</add>
<update>name,description,default_staff_id,contact_display</update>
<delete>id</delete>
<view>id,name,description,default_staff_id,contact_display</view>
<search>id,name,default_staff_id,contact_display</search>
2009-08-03 04:10:16 +00:00
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
2010-11-29 22:41:08 +00:00
<title>
<add>Add Department</add>
<view>View Department</view>
</title>
2009-08-03 04:10:16 +00:00
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<default_staff_id>
<field>default_staff_id</field>
</default_staff_id>
<contact_display>
<field>contact_display</field>
<type>bool</type>
</contact_display>
</search_show>
</tpl>
</construct>