2008-11-26 22:50:40 +00:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
|
|
<construct>
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Module name -->
|
|
|
|
<module>service</module>
|
|
|
|
<!-- Module supporting database table -->
|
|
|
|
<table>service</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>1</version>
|
|
|
|
|
|
|
|
<!-- Database indexes -->
|
|
|
|
<index>
|
|
|
|
<date>site_id,date_orig</date>
|
|
|
|
<parent>site_id,parent_id</parent>
|
2011-07-14 09:09:03 +00:00
|
|
|
<invoice>site_id</invoice>
|
2009-08-03 04:10:16 +00:00
|
|
|
<invoice_item>site_id,invoice_item_id</invoice_item>
|
|
|
|
<account>site_id,account_id</account>
|
|
|
|
<billing>site_id,account_billing_id</billing>
|
|
|
|
<sku>site_id,sku</sku>
|
|
|
|
<active>site_id,active</active>
|
|
|
|
<type>site_id,type</type>
|
|
|
|
<suspend>site_id,suspend_billing</suspend>
|
|
|
|
<price>site_id,price</price>
|
|
|
|
<price_type>site_id,price_type</price_type>
|
|
|
|
<queue>site_id,queue</queue>
|
|
|
|
<date_next>site_id,date_next_invoice</date_next>
|
|
|
|
<recur_type>site_id,recur_type</recur_type>
|
|
|
|
<server>site_id,host_server_id</server>
|
|
|
|
<username>site_id,host_username</username>
|
|
|
|
<domain>site_id,domain_name,domain_tld</domain>
|
|
|
|
<domain_date_expire>site_id,domain_date_expire</domain_date_expire>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<!-- Database fields -->
|
|
|
|
<field>
|
|
|
|
<!-- Record ID -->
|
|
|
|
<id>
|
|
|
|
<index>1</index>
|
|
|
|
<type>I8</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>
|
|
|
|
<account_id>
|
|
|
|
<display>Account</display>
|
|
|
|
<type>I8</type>
|
|
|
|
<asso_table>account</asso_table>
|
|
|
|
<asso_field>first_name,last_name</asso_field>
|
|
|
|
<validate>any</validate>
|
|
|
|
</account_id>
|
|
|
|
<account_billing_id>
|
|
|
|
<type>I8</type>
|
|
|
|
</account_billing_id>
|
|
|
|
<product_id>
|
|
|
|
<type>I8</type>
|
|
|
|
</product_id>
|
|
|
|
<sku>
|
|
|
|
<display>SKU</display>
|
|
|
|
<type>C(32)</type>
|
|
|
|
<validate>any</validate>
|
|
|
|
</sku>
|
|
|
|
<active>
|
|
|
|
<display>Active</display>
|
|
|
|
<type>L</type>
|
|
|
|
</active>
|
|
|
|
<type>
|
|
|
|
<display>Type</display>
|
|
|
|
<type>C(16)</type>
|
|
|
|
<validate>any</validate>
|
|
|
|
</type>
|
|
|
|
<suspend_billing>
|
|
|
|
<display>Suspend Billing Activity</display>
|
|
|
|
<type>L</type>
|
|
|
|
</suspend_billing>
|
|
|
|
<price>
|
|
|
|
<display>Price</display>
|
|
|
|
<type>F</type>
|
|
|
|
</price>
|
|
|
|
<price_type>
|
|
|
|
<display>Price Type</display>
|
|
|
|
<type>I4</type>
|
|
|
|
<validate>any</validate>
|
|
|
|
</price_type>
|
|
|
|
<taxable>
|
|
|
|
<display>Taxable</display>
|
|
|
|
<type>L</type>
|
|
|
|
</taxable>
|
|
|
|
<queue>
|
|
|
|
<display>Queue</display>
|
|
|
|
<type>C(16)</type>
|
|
|
|
</queue>
|
|
|
|
<date_last_invoice>
|
|
|
|
<display>Last Invoice</display>
|
|
|
|
<type>I8</type>
|
|
|
|
<convert>date-time</convert>
|
|
|
|
</date_last_invoice>
|
|
|
|
<date_next_invoice>
|
|
|
|
<display>Next Invoice</display>
|
|
|
|
<type>I8</type>
|
|
|
|
<convert>date-time</convert>
|
|
|
|
</date_next_invoice>
|
|
|
|
<recur_type>
|
|
|
|
<display>Type</display>
|
|
|
|
<type>I4</type>
|
|
|
|
</recur_type>
|
|
|
|
<recur_schedule>
|
|
|
|
<display>Schedule</display>
|
|
|
|
<type>I4</type>
|
|
|
|
</recur_schedule>
|
|
|
|
<recur_weekday>
|
|
|
|
<type>I4</type>
|
|
|
|
</recur_weekday>
|
|
|
|
<recur_schedule_change>
|
|
|
|
<display>User Change Schedule</display>
|
|
|
|
<type>L</type>
|
|
|
|
</recur_schedule_change>
|
|
|
|
<recur_cancel>
|
|
|
|
<display>User May Cancel</display>
|
|
|
|
<type>C(16)</type>
|
|
|
|
</recur_cancel>
|
|
|
|
<host_server_id>
|
|
|
|
<type>I4</type>
|
|
|
|
</host_server_id>
|
|
|
|
<host_username>
|
|
|
|
<display>Hosting User Name</display>
|
|
|
|
<type>C(128)</type>
|
|
|
|
</host_username>
|
|
|
|
<host_password>
|
|
|
|
<display>Hosting Password</display>
|
|
|
|
<type>C(128)</type>
|
|
|
|
</host_password>
|
|
|
|
<domain_name>
|
|
|
|
<display>Domain Name</display>
|
|
|
|
<type>C(128)</type>
|
|
|
|
</domain_name>
|
|
|
|
<domain_tld>
|
|
|
|
<type>C(16)</type>
|
|
|
|
</domain_tld>
|
|
|
|
<domain_term>
|
|
|
|
<display>Renewal Period</display>
|
|
|
|
<type>I4</type>
|
|
|
|
</domain_term>
|
|
|
|
<domain_type>
|
|
|
|
<type>C(16)</type>
|
|
|
|
</domain_type>
|
|
|
|
<domain_date_expire>
|
|
|
|
<display>Date Expire</display>
|
|
|
|
<type>I8</type>
|
|
|
|
<convert>date</convert>
|
|
|
|
</domain_date_expire>
|
|
|
|
<domain_host_tld_id>
|
|
|
|
<type>I4</type>
|
|
|
|
</domain_host_tld_id>
|
|
|
|
<domain_host_registrar_id>
|
|
|
|
<type>I4</type>
|
|
|
|
</domain_host_registrar_id>
|
|
|
|
<prod_attr>
|
2010-11-29 22:41:08 +00:00
|
|
|
<convert>array</convert>
|
2009-08-03 04:10:16 +00:00
|
|
|
<type>X2</type>
|
|
|
|
</prod_attr>
|
|
|
|
<prod_plugin_name>
|
|
|
|
<type>C(128)</type>
|
|
|
|
</prod_plugin_name>
|
|
|
|
<prod_plugin_data>
|
|
|
|
<convert>array</convert>
|
2010-11-29 22:41:08 +00:00
|
|
|
<type>X2</type>
|
2009-08-03 04:10:16 +00:00
|
|
|
</prod_plugin_data>
|
|
|
|
<recur_modify>
|
|
|
|
<display>User May Modify</display>
|
|
|
|
<type>L</type>
|
|
|
|
</recur_modify>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
|
|
<method>
|
2011-07-14 09:09:03 +00:00
|
|
|
<add>id,account_id,account_billing_id,product_id,sku,active,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_schedule_change,recur_cancel,host_server_id,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</add>
|
|
|
|
<update>id,date_last,account_id,account_billing_id,product_id,sku,active,type,price,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_schedule_change,recur_cancel,host_server_id,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify,prod_attr</update>
|
2010-11-29 22:41:08 +00:00
|
|
|
<delete>id</delete>
|
2011-07-14 09:09:03 +00:00
|
|
|
<view>id,date_orig,date_last,account_id,account_billing_id,product_id,sku,active,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_schedule_change,recur_cancel,host_server_id,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify,prod_attr</view>
|
|
|
|
<search>id,date_orig,date_last,account_id,account_billing_id,product_id,sku,active,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_schedule_change,recur_cancel,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify,prod_attr</search>
|
2009-08-03 04:10:16 +00:00
|
|
|
</method>
|
|
|
|
|
|
|
|
<!-- Method triggers -->
|
|
|
|
<trigger></trigger>
|
|
|
|
|
|
|
|
<!-- Template page display titles -->
|
|
|
|
<title>
|
|
|
|
<add>Add Service</add>
|
|
|
|
<search_form>Search</search_form>
|
|
|
|
<user_modify>Modify Service</user_modify>
|
|
|
|
<user_view>Service</user_view>
|
|
|
|
<view>Service</view>
|
|
|
|
</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>
|
|
|
|
<sku>
|
|
|
|
<field>sku</field>
|
|
|
|
</sku>
|
|
|
|
<queue>
|
|
|
|
<field>queue</field>
|
|
|
|
</queue>
|
|
|
|
<price>
|
|
|
|
<field>price</field>
|
|
|
|
</price>
|
|
|
|
<icon>
|
|
|
|
<width>20px</width>
|
|
|
|
</icon>
|
|
|
|
</search_show>
|
|
|
|
<user_search_show>
|
|
|
|
<checkbox>
|
|
|
|
<field>id</field>
|
|
|
|
<type>checkbox</type>
|
|
|
|
<width>25px</width>
|
|
|
|
</checkbox>
|
|
|
|
<date_orig>
|
|
|
|
<field>date_orig</field>
|
|
|
|
<type>date</type>
|
|
|
|
</date_orig>
|
|
|
|
<sku>
|
|
|
|
<field>sku</field>
|
|
|
|
</sku>
|
|
|
|
<queue>
|
|
|
|
<field>queue</field>
|
|
|
|
</queue>
|
|
|
|
<price>
|
|
|
|
<field>price</field>
|
|
|
|
</price>
|
|
|
|
<icon>
|
|
|
|
<width>20px</width>
|
|
|
|
</icon>
|
|
|
|
</user_search_show>
|
|
|
|
</tpl>
|
2008-11-26 22:50:40 +00:00
|
|
|
</construct>
|