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/faq_translate/faq_translate_construct.xml
2011-05-03 09:49:01 +10:00

106 lines
2.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>faq_translate</module>
<!-- Module supporting database table -->
<table>faq_translate</table>
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
<dependancy>faq</dependancy>
<!-- DB cache in seconds -->
<cache>0</cache>
<!-- Default order_by field for SQL queries -->
<order_by>faq_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>
<fulltext_faq>answer,question</fulltext_faq>
</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>
<faq_id>
<type>I4</type>
<asso_table>faq</asso_table>
<asso_field>name</asso_field>
</faq_id>
<language_id>
<type>C(16)</type>
</language_id>
<answer>
<type>X2</type>
<min_len>1</min_len>
<html>1</html>
</answer>
<question>
<type>X2</type>
<min_len>1</min_len>
<max_len>255</max_len>
<validate>any</validate>
</question>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>date_orig,faq_id,language_id,answer,question</add>
<update>id,site_id,date_orig,date_last,faq_id,language_id,answer,question</update>
<delete>id,site_id,date_orig,date_last,faq_id,language_id,answer,question</delete>
<view>id,site_id,date_orig,date_last,faq_id,language_id,answer,question</view>
<search>id,site_id,date_orig,date_last,faq_id,language_id,answer,question</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add XXX</add>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<faq_id>
<field>faq_id</field>
</faq_id>
<language_id>
<field>language_id</field>
</language_id>
<question>
<field>question</field>
</question>
</search_show>
</tpl>
</construct>