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/currency/currency_construct.xml

101 lines
2.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- define the module name -->
<module>currency</module>
<!-- define the module table name -->
<table>currency</table>
<!-- define the module dependancy(s) -->
<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>
<!-- Page Display Titles -->
<title>
<add>Add Currency</add>
<view>Currency</view>
</title>
<!-- 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>
<display>Name</display>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
<validate>any</validate>
<unique>1</unique>
</name>
<status>
<display>Active</display>
<type>L</type>
</status>
<convert_array>
<display>Exchange Rate</display>
<type>X2</type>
<convert>array</convert>
</convert_array>
<notes>
<display>Notes</display>
<type>C2(128)</type>
</notes>
<symbol>
<display>Symbol</display>
<type>C(16)</type>
<min_len>1</min_len>
<max_len>16</max_len>
<validate>any</validate>
</symbol>
<three_digit>
<display>THREE Digit Code</display>
<type>C(3)</type>
<min_len>3</min_len>
<max_len>3</max_len>
<validate>any</validate>
<unique>1</unique>
</three_digit>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>id,site_id,name,convert_array,status,notes,symbol,three_digit</add>
<update>id,site_id,name,convert_array,status,notes,symbol,three_digit</update>
<delete>id,site_id,name,convert_array,status,notes,symbol,three_digit</delete>
<view>id,site_id,name,convert_array,status,notes,symbol,three_digit</view>
<search>id,site_id,name,convert_array,status,notes,symbol,three_digit</search>
<list>id,site_id,name,convert_array,status,notes,symbol,three_digit</list>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
<!-- Template Helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<three_digit>
<field>three_digit</field>
</three_digit>
</search_show>
</tpl>
</construct>