<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
    <!-- define the module name -->
    <module>htaccess_dir</module>
    <!-- define the module table name -->
    <table>htaccess_dir</table>
    <!-- define the module dependancy(s) -->
    <dependancy>htaccess</dependancy>
    <!-- define the DB cache in seconds -->
    <cache>0</cache>
    <!-- define the default order_by field for SQL queries -->
    <order_by>id</order_by>
    <!-- define the methods -->
    <limit>25</limit>
    <!-- define database indexes -->
    <index>
        <htaccess>htaccess_id</htaccess>
        <status>status</status>
    </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>
        <htaccess_id>
            <type>I4</type>
            <asso_table>htaccess</asso_table>
            <asso_field>name</asso_field>
            <validate>any</validate>
            <index>1</index>
        </htaccess_id>
        <name>
            <type>C(128)</type>
            <min_len>3</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
        </name>
        <description>
            <type>X</type>
        </description>
        <status>
            <type>L</type>
        </status>
        <type>
            <type>L</type>
        </type>
        <recursive>
            <type>L</type>
        </recursive>
        <htaccess>
            <type>X</type>
            <validate>any</validate>
        </htaccess>
        <url>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
        </url>
        <path>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
            <unique>1</unique>
        </path>
        <ftp_host>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
        </ftp_host>
        <ftp_user>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
        </ftp_user>
        <ftp_pass>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
        </ftp_pass>
        <ftp_path>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
        </ftp_path>
        <ftp_port>
            <type>C(16)</type>
            <default>21</default>
            <min_len>1</min_len>
            <max_len>4</max_len>
        </ftp_port>
        <exclude>
            <type>X</type>
            <convert>array</convert>
        </exclude>
    </field>
    <!-- define all the methods for this class, and the fields they have access to, if applicable. -->
    <method>
        <add>id,site_id,name,description,htaccess,status,type,url,path,ftp_host,ftp_user,ftp_pass,ftp_path,ftp_port,htaccess_id,exclude,recursive</add>
        <update>id,site_id,name,description,htaccess,status,type,url,path,ftp_host,ftp_user,ftp_pass,ftp_path,ftp_port,htaccess_id,exclude,recursive</update>
        <delete>id,site_id,name,description,htaccess,status,type,url,path,ftp_host,ftp_user,ftp_pass,ftp_path,ftp_port,htaccess_id,exclude,recursive</delete>
        <view>id,site_id,name,description,htaccess,status,type,url,path,ftp_host,ftp_user,ftp_pass,ftp_path,ftp_port,htaccess_id,exclude,recursive</view>
        <search>id,site_id,name,description,htaccess,status,type,url,path,ftp_host,ftp_user,ftp_pass,ftp_path,ftp_port,htaccess_id,exclude,recursive</search>
    </method>
    <!-- define the method triggers -->
    <trigger>0</trigger>
</construct>
