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/product/product_construct.xml

259 lines
7.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>product</module>
<!-- Module supporting database table -->
<table>product</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>sku</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>
<sku>sku</sku>
<active>active</active>
</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>
<!-- Date record updated -->
<date_last>
<convert>date-now</convert>
<display>Date Updated</display>
<type>I8</type>
</date_last>
<sku>
<type>C(32)</type>
<unique>1</unique>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>alphanumeric</validate>
<display>SKU</display>
</sku>
<taxable>
<type>L</type>
</taxable>
<!-- Record active (BOOL)-->
<active>
<display>Status</display>
<type>L</type>
</active>
<position>
<type>I4</type>
</position>
<cart_multiple>
<type>L</type>
</cart_multiple>
<group_avail>
<type>X2</type>
<validate>any</validate>
<convert>array</convert>
<arr_force>1</arr_force>
</group_avail>
<avail_category_id>
<type>C(255)</type>
<validate>any</validate>
<convert>array</convert>
<arr_force>1</arr_force>
</avail_category_id>
<host>
<type>L</type>
</host>
<host_server_id>
<type>I4</type>
</host_server_id>
<host_provision_plugin_data>
<type>X2</type>
<convert>array</convert>
</host_provision_plugin_data>
<host_allow_domain>
<type>L</type>
</host_allow_domain>
<host_allow_host_only>
<type>L</type>
</host_allow_host_only>
<host_discount_tld>
<type>X2</type>
<convert>array</convert>
</host_discount_tld>
<host_discount_tld_amt>
<type>F</type>
</host_discount_tld_amt>
<discount>
<type>L</type>
</discount>
<discount_amount>
<type>F</type>
</discount_amount>
<price_type>
<type>I4</type>
</price_type>
<price_base>
<display>Base Price</display>
<type>F</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>float</validate>
</price_base>
<price_setup>
<type>F</type>
</price_setup>
<price_group>
<type>X2</type>
<convert>array</convert>
</price_group>
<price_recurr_default>
<display>Default Billing Schedule</display>
<type>I4</type>
</price_recurr_default>
<!-- Recurring Type: 0=BILL ON ANNIVERSARY, 1: BILL ON FIXED PERIOD -->
<price_recurr_type>
<display>Recurring Billing Schedule</display>
<type>L</type>
</price_recurr_type>
<price_recurr_weekday>
<display>Day of Month to Bill</display>
<type>I4</type>
</price_recurr_weekday>
<price_recurr_week>
<type>I4</type>
</price_recurr_week>
<price_recurr_schedule>
<type>L</type>
</price_recurr_schedule>
<price_recurr_cancel>
<type>L</type>
</price_recurr_cancel>
<price_trial_length_type>
<type>I4</type>
</price_trial_length_type>
<price_trial_length>
<type>I4</type>
</price_trial_length>
<price_trial_prod>
<type>I4</type>
<asso_table>product</asso_table>
<asso_field>sku</asso_field>
</price_trial_prod>
<assoc_req_prod>
<type>X2</type>
<asso_table>product</asso_table>
<asso_field>sku</asso_field>
<convert>array</convert>
</assoc_req_prod>
<assoc_req_prod_type>
<type>I4</type>
</assoc_req_prod_type>
<assoc_grant_prod>
<type>X2</type>
<asso_table>product</asso_table>
<asso_field>sku</asso_field>
<convert>array</convert>
<arr_force>1</arr_force>
</assoc_grant_prod>
<assoc_grant_group>
<type>X2</type>
<convert>array</convert>
</assoc_grant_group>
<assoc_grant_group_type>
<type>I4</type>
</assoc_grant_group_type>
<assoc_grant_group_days>
<type>I4</type>
</assoc_grant_group_days>
<thumbnail>
<display>Product Thumbnail</display>
<type>C(128)</type>
</thumbnail>
<prod_plugin>
<type>L</type>
</prod_plugin>
<prod_plugin_file>
<type>C(128)</type>
</prod_plugin_file>
<prod_plugin_data>
<type>X2</type>
<convert>array</convert>
</prod_plugin_data>
<price_recurr_modify>
<type>L</type>
</price_recurr_modify>
<modify_waive_setup>
<type>L</type>
</modify_waive_setup>
<modify_product_arr>
<type>X2</type>
<convert>array</convert>
</modify_product_arr>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>id,site_id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,discount,discount_amount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_schedule,price_recurr_cancel,price_trial_length_type,price_trial_length,price_trial_prod,assoc_req_prod,assoc_req_prod_type,assoc_grant_prod,assoc_grant_group,assoc_grant_group_type,assoc_grant_group_days,thumbnail,price_recurr_default,price_recurr_modify,modify_waive_setup,modify_product_arr</add>
<update>id,site_id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,discount,discount_amount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_schedule,price_recurr_cancel,price_trial_length_type,price_trial_length,price_trial_prod,assoc_req_prod,assoc_req_prod_type,assoc_grant_prod,assoc_grant_group,assoc_grant_group_type,assoc_grant_group_days,thumbnail,price_recurr_default,host,host_server_id,host_provision_plugin_data,host_allow_domain,host_allow_host_only,host_discount_tld,host_discount_tld_amt,prod_plugin,prod_plugin_file,prod_plugin_data,price_recurr_modify,modify_waive_setup,modify_product_arr</update>
<delete>id,site_id</delete>
<view>id,site_id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,discount,discount_amount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_schedule,price_recurr_cancel,price_trial_length_type,price_trial_length,price_trial_prod,assoc_req_prod,assoc_req_prod_type,assoc_grant_prod,assoc_grant_group,assoc_grant_group_type,assoc_grant_group_days,thumbnail,price_recurr_default,host,host_server_id,host_provision_plugin_data,host_allow_domain,host_allow_host_only,host_discount_tld,host_discount_tld_amt,prod_plugin,prod_plugin_file,prod_plugin_data,price_recurr_modify,modify_waive_setup,modify_product_arr</view>
<search>id,site_id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,price_type,price_recurr_schedule,price_recurr_cancel,price_base,price_setup</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<view>Products</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<sku>
<field>sku</field>
</sku>
<price_base>
<field>price_base</field>
</price_base>
<active>
<field>active</field>
<width>20px</width>
</active>
<description>
<field>description</field>
<width>48%</width>
</description>
<icon>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>