<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
    <!-- define the module name -->
    <module>static_page</module>
    <!-- define the module table name -->
    <table>static_page</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>sort_order,date_orig,name</order_by>
    <!-- define the methods -->
    <limit>35</limit>
    <!-- define database indexes -->
    <index>
        <cat>static_page_category_id</cat>
        <start>date_start</start>
        <expire>date_expire</expire>
        <name>name</name>
    </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>
        <static_page_category_id>
            <type>I4</type>
            <asso_table>static_page_category</asso_table>
            <asso_field>name</asso_field>
            <index>1</index>
        </static_page_category_id>
        <date_orig>
            <type>I8</type>
            <convert>date-now</convert>
        </date_orig>
        <date_last>
            <type>I8</type>
            <convert>date-now</convert>
        </date_last>
        <date_start>
            <type>I8</type>
            <convert>date</convert>
        </date_start>
        <date_expire>
            <type>I8</type>
            <convert>date</convert>
        </date_expire>
        <sort_order>
            <type>I4</type>
        </sort_order>
        <status>
            <type>L</type>
        </status>
        <name>
            <type>C(128)</type>
            <min_len>1</min_len>
            <max_len>128</max_len>
            <validate>any</validate>
            <unique>1</unique>
        </name>
        <description>
            <type>X2</type>
        </description>
    </field>
    <!-- define all the methods for this class, and the fields they have access to, if applicable. -->
    <method>
        <add>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_last,date_expire,status,name,description</add>
        <update>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</update>
        <delete>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</delete>
        <view>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</view>
        <search>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</search>
    </method>
    <!-- define the method triggers -->
    <trigger>0</trigger>
</construct>
