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/login_log/login_log_construct.xml

101 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- Module name -->
<module>login_log</module>
<!-- Module supporting database table -->
<table>login_log</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>date_orig</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>
<account>account_id</account>
<ip>ip</ip>
</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>
<!-- Date record created -->
<date_orig>
<convert>date-now</convert>
<display>Date Created</display>
<type>I8</type>
</date_orig>
<account_id>
<type>I8</type>
<asso_table>account</asso_table>
<asso_field>username</asso_field>
<display>Account</display>
</account_id>
<status>
<type>L</type>
<display>Active</display>
</status>
<ip>
<type>C(32)</type>
<display>IP Address</display>
</ip>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>id,site_id,date_orig,account_id,status,ip</add>
<update>id,site_id,date_orig,account_id,status,ip</update>
<delete>id,site_id,date_orig,account_id,status,ip</delete>
<view>id,site_id,date_orig,account_id,status,ip</view>
<search>id,site_id,date_orig,account_id,status,ip</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<search_form>Search</search_form>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<account_id>
<field>account_id</field>
</account_id>
<date_orig>
<field>date_orig</field>
<type>date</type>
</date_orig>
<ip>
<field>ip</field>
</ip>
<last>
<type>literal</type>
<width>60px</width>
</last>
</search_show>
</tpl>
</construct>