58 lines
1.7 KiB
XML
58 lines
1.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- define the module name -->
|
|
<module>blocked_ip</module>
|
|
<!-- define the module table name -->
|
|
<table>blocked_ip</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>ip</order_by>
|
|
<!-- define the methods -->
|
|
<limit>25</limit>
|
|
<!-- define database indexes -->
|
|
<index>
|
|
<ip>ip</ip>
|
|
</index>
|
|
<!-- define the fields -->
|
|
<field>
|
|
<id>
|
|
<type>I4</type>
|
|
<index>1</index>
|
|
</id>
|
|
<site_id>
|
|
<type>I4</type>
|
|
<index>1</index>
|
|
</site_id>
|
|
<date_orig>
|
|
<type>I8</type>
|
|
<convert>date-time</convert>
|
|
</date_orig>
|
|
<date_last>
|
|
<type>I8</type>
|
|
</date_last>
|
|
<ip>
|
|
<type>C(128)</type>
|
|
<min_len>1</min_len>
|
|
<max_len>128</max_len>
|
|
<validate>any</validate>
|
|
</ip>
|
|
<notes>
|
|
<type>X2</type>
|
|
</notes>
|
|
</field>
|
|
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
|
<method>
|
|
<add>id,site_id,date_orig,date_last,ip,notes</add>
|
|
<update>id,site_id,date_orig,date_last,ip,notes</update>
|
|
<delete>id,site_id,date_orig,date_last,ip,notes</delete>
|
|
<view>id,site_id,date_orig,date_last,ip,notes</view>
|
|
<search>id,site_id,date_orig,date_last,ip,notes</search>
|
|
</method>
|
|
<!-- define the method triggers -->
|
|
<trigger>
|
|
</trigger>
|
|
</construct>
|