Changes to AgileBill
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,107 +1,128 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>cart</module>
|
||||
<!-- define the module table name -->
|
||||
<table>cart</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy/>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>date_orig</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>25</limit>
|
||||
<!-- define database indexes -->
|
||||
<index>
|
||||
<account>account_id</account>
|
||||
<session>session_id</session>
|
||||
<parent>cart_parent_id</parent>
|
||||
</index>
|
||||
<!-- define the fields -->
|
||||
<field>
|
||||
<id>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
<index>1</index>
|
||||
</site_id>
|
||||
<date_orig>
|
||||
<type>I8</type>
|
||||
</date_orig>
|
||||
<account_id>
|
||||
<type>I8</type>
|
||||
</account_id>
|
||||
<session_id>
|
||||
<type>C(32)</type>
|
||||
</session_id>
|
||||
<cart_type>
|
||||
<type>I4</type>
|
||||
</cart_type>
|
||||
<product_id>
|
||||
<type>I4</type>
|
||||
</product_id>
|
||||
<product_attr>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</product_attr>
|
||||
<quantity>
|
||||
<type>I4</type>
|
||||
</quantity>
|
||||
<coupon>
|
||||
<type>C(16)</type>
|
||||
</coupon>
|
||||
<recurr_schedule>
|
||||
<type>I4</type>
|
||||
</recurr_schedule>
|
||||
<host_type>
|
||||
<type>C(16)</type>
|
||||
</host_type>
|
||||
<domain_tld_id>
|
||||
<type>I4</type>
|
||||
</domain_tld_id>
|
||||
<domain_name>
|
||||
<type>C(128)</type>
|
||||
</domain_name>
|
||||
<domain_tld>
|
||||
<type>C(16)</type>
|
||||
</domain_tld>
|
||||
<domain_term>
|
||||
<type>I4</type>
|
||||
</domain_term>
|
||||
<cart_parent_id>
|
||||
<type>I4</type>
|
||||
</cart_parent_id>
|
||||
<ad_hoc_sku>
|
||||
<type>C(16)</type>
|
||||
</ad_hoc_sku>
|
||||
<ad_hoc_name>
|
||||
<type>C(128)</type>
|
||||
</ad_hoc_name>
|
||||
<ad_hoc_desc>
|
||||
<type>C(255)</type>
|
||||
</ad_hoc_desc>
|
||||
<ad_hoc_amount>
|
||||
<type>F</type>
|
||||
</ad_hoc_amount>
|
||||
<ad_hoc_setup>
|
||||
<type>F</type>
|
||||
</ad_hoc_setup>
|
||||
<ad_hoc_discount>
|
||||
<type>F</type>
|
||||
</ad_hoc_discount>
|
||||
<ad_hoc_taxable>
|
||||
<type>L</type>
|
||||
</ad_hoc_taxable>
|
||||
<service_id>
|
||||
<!-- Module name -->
|
||||
<module>cart</module>
|
||||
<!-- Module supporting database table -->
|
||||
<table>cart</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>
|
||||
<account>account_id</account>
|
||||
<session>session_id</session>
|
||||
<parent>cart_parent_id</parent>
|
||||
</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>
|
||||
</service_id>
|
||||
</field>
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>0</method>
|
||||
<!-- define the method triggers -->
|
||||
<trigger>0</trigger>
|
||||
</date_orig>
|
||||
<account_id>
|
||||
<type>I8</type>
|
||||
</account_id>
|
||||
<session_id>
|
||||
<type>C(32)</type>
|
||||
</session_id>
|
||||
<!-- 0: PRODUCT, 1: HOSTING, 2: DOMAINNAMES, 3: AD-HOC ITEM -->
|
||||
<cart_type>
|
||||
<type>I4</type>
|
||||
</cart_type>
|
||||
<product_id>
|
||||
<type>I4</type>
|
||||
</product_id>
|
||||
<product_attr>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</product_attr>
|
||||
<quantity>
|
||||
<type>I4</type>
|
||||
</quantity>
|
||||
<coupon>
|
||||
<type>C(16)</type>
|
||||
</coupon>
|
||||
<recurr_schedule>
|
||||
<type>I4</type>
|
||||
</recurr_schedule>
|
||||
<host_type>
|
||||
<type>C(16)</type>
|
||||
</host_type>
|
||||
<domain_tld_id>
|
||||
<type>I4</type>
|
||||
</domain_tld_id>
|
||||
<domain_name>
|
||||
<type>C(128)</type>
|
||||
</domain_name>
|
||||
<domain_tld>
|
||||
<type>C(16)</type>
|
||||
</domain_tld>
|
||||
<domain_term>
|
||||
<type>I4</type>
|
||||
</domain_term>
|
||||
<cart_parent_id>
|
||||
<type>I4</type>
|
||||
</cart_parent_id>
|
||||
<ad_hoc_sku>
|
||||
<type>C(16)</type>
|
||||
</ad_hoc_sku>
|
||||
<ad_hoc_name>
|
||||
<type>C(128)</type>
|
||||
</ad_hoc_name>
|
||||
<ad_hoc_desc>
|
||||
<type>C(255)</type>
|
||||
</ad_hoc_desc>
|
||||
<ad_hoc_amount>
|
||||
<type>F</type>
|
||||
</ad_hoc_amount>
|
||||
<ad_hoc_setup>
|
||||
<type>F</type>
|
||||
</ad_hoc_setup>
|
||||
<ad_hoc_discount>
|
||||
<type>F</type>
|
||||
</ad_hoc_discount>
|
||||
<ad_hoc_taxable>
|
||||
<type>L</type>
|
||||
</ad_hoc_taxable>
|
||||
<service_id>
|
||||
<type>I8</type>
|
||||
</service_id>
|
||||
</field>
|
||||
|
||||
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
||||
<method></method>
|
||||
|
||||
<!-- Method triggers -->
|
||||
<trigger></trigger>
|
||||
|
||||
<!-- Template page display titles -->
|
||||
<title>
|
||||
<ad_hoc>Ad Hoc Item</ad_hoc>
|
||||
</title>
|
||||
|
||||
<!-- Template helpers -->
|
||||
<tpl>
|
||||
</tpl>
|
||||
</construct>
|
||||
|
@@ -1,23 +1,38 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<!-- Tree Menu Module Properties -->
|
||||
<module_properties>
|
||||
<!-- MODULE Dependancy, this module wont be installed if the dependant modules dont exist -->
|
||||
<dependancy></dependancy>
|
||||
<!-- Translated display to use on the tree -->
|
||||
<display></display>
|
||||
<!-- Display a module in the menu tree -->
|
||||
<menu_display>0</menu_display>
|
||||
<!-- MODULE Name -->
|
||||
<name>cart</name>
|
||||
<parent>cart</parent>
|
||||
<!-- MODULE Notes, these notes show up in the modules table, as a description of the module -->
|
||||
<notes><![CDATA[This module controls the shopping cart contents]]></notes>
|
||||
<!-- MODULE Parent, the parent node in the tree -->
|
||||
<parent>cart</parent>
|
||||
<!-- SUB Modules to install with this one -->
|
||||
<sub_modules></sub_modules>
|
||||
<!-- MODULE Type (core|base), core modules cannot be deleted, unrecognised types are ignored. -->
|
||||
<type>base</type>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<admin_view>
|
||||
<name>admin_view</name>
|
||||
</admin_view>
|
||||
<admin_add>
|
||||
<name>admin_add</name>
|
||||
</admin_add>
|
||||
<admin_changeqty>
|
||||
<name>admin_changeqty</name>
|
||||
</admin_changeqty>
|
||||
<ad_hoc>
|
||||
<name>ad_hoc</name>
|
||||
</ad_hoc>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
||||
|
||||
<!-- Tree Menu & Module Methods to load, they will be assigned the group permissions on install time, as selected by the user. -->
|
||||
<module_method>
|
||||
<admin_view>
|
||||
<name>admin_view</name>
|
||||
</admin_view>
|
||||
<admin_add>
|
||||
<name>admin_add</name>
|
||||
</admin_add>
|
||||
<admin_changeqty>
|
||||
<name>admin_changeqty</name>
|
||||
</admin_changeqty>
|
||||
<ad_hoc>
|
||||
<name>ad_hoc</name>
|
||||
</ad_hoc>
|
||||
</module_method>
|
||||
</install>
|
||||
|
Reference in New Issue
Block a user