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/country/country_construct.xml

107 lines
2.5 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>country</module>
<!-- Module supporting database table -->
<table>country</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy></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>
</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>Name</display>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
<validate>any</validate>
<unique>1</unique>
</name>
<description>
<display>Description</display>
<type>C2(128)</type>
</description>
<notes>
<display>Notes</display>
<type>C2(128)</type>
</notes>
<two_code>
<display>TWO Letter Code</display>
<type>C(16)</type>
<min_len>2</min_len>
<max_len>2</max_len>
<validate>any</validate>
<unique>1</unique>
</two_code>
<three_code>
<display>THREE Letter Code</display>
<type>C(16)</type>
<min_len>3</min_len>
<max_len>3</max_len>
<validate>any</validate>
<unique>1</unique>
</three_code>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>name,description,notes,two_code,three_code</add>
<update>id,site_id,name,description,notes,two_code,three_code</update>
<delete>id,site_id,name,description,notes,two_code,three_code</delete>
<view>id,site_id,name,description,notes,two_code,three_code</view>
<search>id,site_id,name,description,notes,two_code,three_code</search>
<list>id,site_id,name,description,notes,two_code,three_code</list>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add Country</add>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<two_code>
<field>two_code</field>
</two_code>
<three_code>
<field>three_code</field>
</three_code>
</search_show>
</tpl>
</construct>