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_template/affiliate_template_construct.xml

128 lines
3.7 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>affiliate_template</module>
<!-- Module supporting database table -->
<table>affiliate_template</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>name</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>
</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>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<affiliate_plugin>
<type>C(32)</type>
</affiliate_plugin>
<avail_campaign_id>
<type>X2</type>
<convert>array</convert>
</avail_campaign_id>
<name>
<type>C(32)</type>
<min_len>2</min_len>
<max_len>32</max_len>
<validate>any</validate>
</name>
<notes>
<type>X2</type>
</notes>
<max_tiers>
<type>I4</type>
<min_len>1</min_len>
<max_len>2</max_len>
<validate>numeric</validate>
</max_tiers>
<commission_minimum>
<type>F</type>
<min_len>1</min_len>
<max_len>12</max_len>
<validate>float</validate>
</commission_minimum>
<new_commission_type>
<type>L</type>
</new_commission_type>
<new_commission_rate>
<type>X2</type>
<convert>array</convert>
</new_commission_rate>
<recurr_commission_type>
<type>L</type>
</recurr_commission_type>
<recurr_commission_rate>
<type>X2</type>
<convert>array</convert>
</recurr_commission_rate>
<recurr_max_commission_periods>
<type>I4</type>
</recurr_max_commission_periods>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>affiliate_plugin,avail_campaign_id,status,name,notes,max_tiers,commission_minimum,new_commission_type,new_commission_rate,recurr_commission_type,recurr_commission_rate,recurr_max_commission_periods</add>
<update>id,site_id,affiliate_plugin,avail_campaign_id,status,name,notes,max_tiers,commission_minimum,new_commission_type,new_commission_rate,recurr_commission_type,recurr_commission_rate,recurr_max_commission_periods</update>
<delete>id,site_id,affiliate_plugin,avail_campaign_id,status,name,notes,max_tiers,commission_minimum,new_commission_type,new_commission_rate,recurr_commission_type,recurr_commission_rate,recurr_max_commission_periods</delete>
<view>id,site_id,affiliate_plugin,avail_campaign_id,status,name,notes,max_tiers,commission_minimum,new_commission_type,new_commission_rate,recurr_commission_type,recurr_commission_rate,recurr_max_commission_periods</view>
<search>id,site_id,affiliate_plugin,avail_campaign_id,status,name,notes,max_tiers,commission_minimum,new_commission_type,new_commission_rate,recurr_commission_type,recurr_commission_rate,recurr_max_commission_periods</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>
<name>
<field>name</field>
</name>
<max_tiers>
<field>max_tiers</field>
</max_tiers>
<commission_minimum>
<field>commission_minimum</field>
</commission_minimum>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>