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/asset/asset_construct.xml
2011-05-03 09:49:04 +10:00

122 lines
2.7 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>asset</module>
<!-- Module supporting database table -->
<table>asset</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>asset</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>
<assets>id,site_id</assets>
<asso>pool_id</asso>
<service>service_id</service>
<asset>asset</asset>
</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>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>L</type>
</status>
<service_id>
<display>Service ID</display>
<type>I8</type>
</service_id>
<pool_id>
<display>Pool</display>
<asso_table>asset_pool</asso_table>
<asso_field>name</asso_field>
<type>I4</type>
<validate>any</validate>
</pool_id>
<asset>
<display>Asset</display>
<min_len>1</min_len>
<max_len>128</max_len>
<type>C(128)</type>
</asset>
<misc>
<display>Notes</display>
<type>C(255)</type>
</misc>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method>
<add>status,pool_id,asset,misc</add>
<update>id,status,service_id,pool_id,asset,misc</update>
<delete>id</delete>
<view>id,date_orig,date_last,status,service_id,pool_id,asset,misc</view>
<search>id,date_orig,date_last,status,service_id,pool_id,asset,misc</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add Asset</add>
<view>View Asset</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<date_last>
<field>date_last</field>
<type>date</type>
</date_last>
<status>
<field>status</field>
<type>bool_icon</type>
</status>
<pool_id>
<field>pool_id</field>
</pool_id>
<asset>
<field>asset</field>
</asset>
</search_show>
</tpl>
</construct>