<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
    <!-- define the module name -->
    <module>host_tld</module>
    <!-- define the module table name -->
    <table>host_tld</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 database indexes -->
    <index>
        <status>status</status>
        <name>name</name>
        <auto_search>auto_search</auto_search>
    </index>
    <!-- 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>
        <status>
            <type>L</type>
        </status>
        <name>
            <type>C(128)</type> 
            <validate>any</validate>
        </name>
        <taxable>
            <type>L</type>
        </taxable>
        <whois_plugin>
            <type>C(32)</type>
            <min_len>1</min_len>
            <max_len>32</max_len>
        </whois_plugin>
        <whois_plugin_data>
            <type>X2</type>
            <convert>array</convert>
        </whois_plugin_data>
        <registrar_plugin_id>
            <type>I4</type>
            <asso_table>host_registrar_plugin</asso_table>
            <asso_field>name</asso_field>
        </registrar_plugin_id>
        <registrar_plugin_data>
            <type>X2</type>
            <convert>array</convert>
        </registrar_plugin_data>
        <auto_search>
            <type>L</type>
        </auto_search>
        <default_term_new>
            <type>I4</type>
            <min_len>1</min_len>
            <max_len>2</max_len>
            <validate>numeric</validate>
        </default_term_new>
        <price_group>
            <type>X2</type>
            <convert>array</convert>
        </price_group>
    </field>
    <!-- define all the methods for this class, and the fields they have access to, if applicable. -->
    <method>
        <add>id,site_id,status,name,whois_plugin,whois_plugin_data,registrar_plugin_id,registrar_plugin_data,auto_search,default_term_new,price_group,taxable</add>
        <update>id,site_id,status,name,whois_plugin,whois_plugin_data,registrar_plugin_id,registrar_plugin_data,auto_search,default_term_new,price_group,taxable</update>
        <delete>id,site_id,status,name,whois_plugin,whois_plugin_data,registrar_plugin_id,registrar_plugin_data,auto_search,default_term_new,price_group,taxable</delete>
        <view>id,site_id,status,name,whois_plugin,whois_plugin_data,registrar_plugin_id,registrar_plugin_data,auto_search,default_term_new,price_group,taxable</view>
        <search>id,site_id,status,name,whois_plugin,whois_plugin_data,registrar_plugin_id,registrar_plugin_data,auto_search,default_term_new,price_group,taxable</search>
    </method>
    <!-- define the method triggers -->
    <trigger>0</trigger>
</construct>
