Changes to AgileBill
This commit is contained in:
@@ -1,69 +1,85 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>product_translate</module>
|
||||
<!-- define the module table name -->
|
||||
<table>product_translate</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy>product</dependancy>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>product_id</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>25</limit>
|
||||
<!-- define database indexes -->
|
||||
<index>
|
||||
<product>product_id</product>
|
||||
<language>language_id</language>
|
||||
<name>name</name>
|
||||
</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>
|
||||
<product_id>
|
||||
<type>I4</type>
|
||||
<asso_table>product</asso_table>
|
||||
<asso_field>sku</asso_field>
|
||||
<validate>any</validate>
|
||||
</product_id>
|
||||
<language_id>
|
||||
<type>C(16)</type>
|
||||
</language_id>
|
||||
<name>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</name>
|
||||
<description_short>
|
||||
<type>X2</type>
|
||||
<html>1</html>
|
||||
</description_short>
|
||||
<description_full>
|
||||
<type>X2</type>
|
||||
<html>1</html>
|
||||
</description_full>
|
||||
<email_template>
|
||||
<type>X2</type>
|
||||
</email_template>
|
||||
</field>
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>
|
||||
<add>id,site_id,product_id,language_id,name,description_short,description_full,email_template</add>
|
||||
<update>id,site_id,product_id,language_id,name,description_short,description_full,email_template</update>
|
||||
<delete>id,site_id,product_id,language_id,name,description_short,description_full,email_template</delete>
|
||||
<view>id,site_id,product_id,language_id,name,description_short,description_full,email_template</view>
|
||||
<search>id,site_id,product_id,language_id,name,description_short,description_full,email_template</search>
|
||||
</method>
|
||||
<!-- define the method triggers -->
|
||||
<trigger>0</trigger>
|
||||
<!-- Module name -->
|
||||
<module>product_translate</module>
|
||||
<!-- Module supporting database table -->
|
||||
<table>product_translate</table>
|
||||
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
||||
<dependancy>product</dependancy>
|
||||
<!-- DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- Default order_by field for SQL queries -->
|
||||
<order_by>product_id</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>
|
||||
<product>product_id</product>
|
||||
<language>language_id</language>
|
||||
<name>name</name>
|
||||
</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>
|
||||
<product_id>
|
||||
<type>I4</type>
|
||||
<asso_table>product</asso_table>
|
||||
<asso_field>sku</asso_field>
|
||||
<validate>any</validate>
|
||||
</product_id>
|
||||
<language_id>
|
||||
<type>C(16)</type>
|
||||
</language_id>
|
||||
<name>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</name>
|
||||
<description_short>
|
||||
<type>X2</type>
|
||||
<html>1</html>
|
||||
</description_short>
|
||||
<description_full>
|
||||
<type>X2</type>
|
||||
<html>1</html>
|
||||
</description_full>
|
||||
<email_template>
|
||||
<type>X2</type>
|
||||
</email_template>
|
||||
</field>
|
||||
|
||||
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
||||
<method>
|
||||
<add>id,site_id,product_id,language_id,name,description_short,description_full,email_template</add>
|
||||
<update>id,site_id,product_id,language_id,name,description_short,description_full,email_template</update>
|
||||
<delete>id,site_id,product_id,language_id,name,description_short,description_full,email_template</delete>
|
||||
<view>id,site_id,product_id,language_id,name,description_short,description_full,email_template</view>
|
||||
<search>id,site_id,product_id,language_id,name,description_short,description_full,email_template</search>
|
||||
</method>
|
||||
|
||||
<!-- Method triggers -->
|
||||
<trigger></trigger>
|
||||
|
||||
<!-- Template page display titles -->
|
||||
<title>
|
||||
</title>
|
||||
|
||||
<!-- Template helpers -->
|
||||
<tpl>
|
||||
</tpl>
|
||||
</construct>
|
||||
|
@@ -1,30 +1,55 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<!-- Tree Menu Module Properties -->
|
||||
<module_properties>
|
||||
<name>product_translate</name>
|
||||
<parent>product</parent>
|
||||
<notes><![CDATA[This module maintains the translations for each of the products.]]></notes>
|
||||
<!-- MODULE Dependancy, this module wont be installed if the dependant modules dont exist -->
|
||||
<dependancy>product</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>product_translate</name>
|
||||
<!-- MODULE Notes, these notes show up in the modules table, as a description of the module -->
|
||||
<notes><![CDATA[This module maintains the translations for each of the products.]]></notes>
|
||||
<!-- MODULE Parent, the parent node in the tree -->
|
||||
<parent>product</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>
|
||||
<add>
|
||||
<name>add</name>
|
||||
</add>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
</search_show>
|
||||
<search>
|
||||
<name>search</name>
|
||||
</search>
|
||||
<view>
|
||||
<name>view</name>
|
||||
</view>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
</delete>
|
||||
</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>
|
||||
<add>
|
||||
<name>add</name>
|
||||
<notes><![CDATA[Add records]]></notes>
|
||||
</add>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
<notes><![CDATA[Delete records]]></notes>
|
||||
</delete>
|
||||
<search>
|
||||
<name>search</name>
|
||||
<notes><![CDATA[List records]]></notes>
|
||||
<page><![CDATA[core:search&module=%%&_next_page_one=view]]></page>
|
||||
</search>
|
||||
<search_form>
|
||||
<name>search_form</name>
|
||||
<notes><![CDATA[Search for records]]></notes>
|
||||
</search_form>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
<notes><![CDATA[Show the results of a search]]></notes>
|
||||
</search_show>
|
||||
<update>
|
||||
<name>update</name>
|
||||
<notes><![CDATA[Update a record]]></notes>
|
||||
</update>
|
||||
<view>
|
||||
<name>view</name>
|
||||
<notes><![CDATA[View a record]]></notes>
|
||||
</view>
|
||||
</module_method>
|
||||
</install>
|
||||
|
Reference in New Issue
Block a user