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/adsl_supplier/adsl_supplier_construct.xml

83 lines
1.9 KiB
XML
Raw Normal View History

2010-11-29 22:41:08 +00:00
<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- define the module name -->
<module>adsl_supplier</module>
<!-- define the module table name -->
<table>adsl_supplier</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>
<!-- define the fields -->
<field>
<id>
<type>I4</type>
<unique>1</unique>
<index>1</index>
</id>
<site_id>
<type>I4</type>
</site_id>
<status>
<display>Active</display>
<type>L</type>
</status>
<debug>
<type>L</type>
</debug>
<name>
<display>Supplier</display>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
<validate>any</validate>
</name>
<notes>
<type>C(255)</type>
</notes>
<provision_plugin>
<type>C(128)</type>
<min_len>1</min_len>
<max_len>128</max_len>
</provision_plugin>
<provision_plugin_data>
<type>X2</type>
<convert>array</convert>
</provision_plugin_data>
<max_accounts>
<type>I4</type>
</max_accounts>
</field>
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>name</add>
<update>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</update>
<delete>id</delete>
<view>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</view>
<search>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</search>
</method>
<!-- define the method triggers -->
<trigger>0</trigger>
<!-- Template Helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<supplier_id>
<field>name</field>
</supplier_id>
</search_show>
</tpl>
</construct>