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/affiliate_commission/affiliate_commission_construct.xml
2011-05-03 09:49:01 +10:00

114 lines
2.7 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>affiliate_commission</module>
<!-- Module supporting database table -->
<table>affiliate_commission</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>affiliate</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>
<start>date_begin</start>
<end>date_end</end>
</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>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<date_begin>
<convert>date</convert>
<type>I8</type>
</date_begin>
<date_end>
<type>I8</type>
<convert>date</convert>
</date_end>
<commissions>
<type>F</type>
</commissions>
<notes_admin>
<type>X2</type>
</notes_admin>
<notes_affiliate>
<type>X2</type>
</notes_affiliate>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>id,site_id,date_orig,date_begin,date_end,commissions,notes_admin,notes_affiliate,status</add>
<update>id,site_id,date_orig,date_begin,date_end,commissions,notes_admin,notes_affiliate,status</update>
<delete>id,site_id</delete>
<view>id,site_id,date_orig,date_begin,date_end,commissions,notes_admin,notes_affiliate,status</view>
<search>id,site_id,date_orig,date_begin,date_end,commissions,notes_admin,notes_affiliate,status</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<date_orig>
<field>date_orig</field>
<type>date</type>
</date_orig>
<date_begin>
<field>date_begin</field>
<type>date</type>
</date_begin>
<date_end>
<field>date_end</field>
<type>date</type>
</date_end>
<commissions>
<field>commissions</field>
</commissions>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>