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/host_server/host_server_construct.xml
2011-05-03 09:49:01 +10:00

142 lines
3.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>host_server</module>
<!-- Module supporting database table -->
<table>host_server</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>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<debug>
<type>L</type>
</debug>
<name>
<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>
<next_host_server_id>
<type>I4</type>
<asso_table>host_server</asso_table>
<asso_field>name</asso_field>
</next_host_server_id>
<name_based>
<type>L</type>
</name_based>
<name_based_ip>
<type>C(32)</type>
</name_based_ip>
<ip_based>
<type>L</type>
</ip_based>
<ip_based_ip>
<type>X2</type>
</ip_based_ip>
<ns_primary>
<type>C(128)</type>
</ns_primary>
<ns_secondary>
<type>C(128)</type>
</ns_secondary>
<ns_ip_primary>
<type>C(128)</type>
</ns_ip_primary>
<ns_ip_secondary>
<type>C(128)</type>
</ns_ip_secondary>
<keycode>
<type>C(64)</type>
</keycode>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>status,debug,name,notes,provision_plugin,name_based,name_based_ip,ip_based,ip_based_ip,ns_ip_secondary,ns_ip_primary,ns_primary,ns_secondary,keycode</add>
<update>id,site_id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts,next_host_server_id,name_based,name_based_ip,ip_based,ip_based_ip,ns_ip_secondary,ns_ip_primary,ns_primary,ns_secondary,keycode</update>
<delete>id,site_id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts,next_host_server_id,name_based,name_based_ip,ip_based,ip_based_ip,ns_ip_secondary,ns_ip_primary,ns_primary,ns_secondary,keycode</delete>
<view>id,site_id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts,next_host_server_id,name_based,name_based_ip,ip_based,ip_based_ip,ns_ip_secondary,ns_ip_primary,ns_primary,ns_secondary,keycode</view>
<search>id,site_id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts,next_host_server_id,name_based,name_based_ip,ip_based,ip_based_ip,ns_ip_secondary,ns_ip_primary,ns_primary,ns_secondary,keycode</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<provision_plugin>
<field>provision_plugin</field>
</provision_plugin>
<name_based_ip>
<field>name_based_ip</field>
</name_based_ip>
<max_accounts>
<field>max_accounts</field>
</max_accounts>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>