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/task/task_construct.xml

186 lines
4.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
2009-08-03 04:10:16 +00:00
<!-- Module name -->
<module>task</module>
<!-- Module supporting database table -->
<table>task</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>name</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>
<start>date_start</start>
<expire>date_expire</expire>
</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>
<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>
<!-- Date last run -->
<date_run>
<convert>date-now</convert>
<display>Date Last Run</display>
<type>I8</type>
</date_run>
<!-- Record active (BOOL)-->
<status>
<display>Active</display>
<type>I4</type>
</status>
<date_start>
<display>Date Start</display>
<type>I8</type>
<convert>date-time</convert>
</date_start>
<date_expire>
<display>Date Expire</display>
<type>I8</type>
<convert>date-time</convert>
</date_expire>
<name>
<display>Name</display>
<type>C(32)</type>
<min_len>3</min_len>
<max_len>32</max_len>
<validate>any</validate>
</name>
<description>
<display>Description</display>
<type>C(255)</type>
</description>
<!-- Log Task: (BOOL) -->
<log>
<display>Log</display>
<type>L</type>
</log>
<!-- Task type: 0=INTERNAL(run method), 1=EXTERNAL(run CMD) -->
<type>
<display>Type</display>
<type>I4</type>
</type>
<command>
<display>Command</display>
<type>C(128)</type>
<min_len>2</min_len>
<max_len>128</max_len>
<validate>any</validate>
</command>
<int_min>
<display>Minute</display>
<type>C(32)</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>any</validate>
</int_min>
<int_hour>
<display>Hour</display>
<type>C(32)</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>any</validate>
</int_hour>
<int_month>
<display>Month</display>
<type>C(32)</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>any</validate>
</int_month>
<int_month_day>
<display>Day</display>
<type>C(32)</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>any</validate>
</int_month_day>
<int_week_day>
<display>Week Day</display>
<type>C(32)</type>
<min_len>1</min_len>
<max_len>32</max_len>
<validate>any</validate>
</int_week_day>
<!-- Task is currently running: 1=RUNNING, 0|NULL=NOT RUNNING -->
<running>
<type>L</type>
</running>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable. -->
<method>
<add>date_start,date_expire,date_last,name,description,log,type,command,int_min,int_hour,int_month_day,int_month,int_week_day</add>
<update>id,site_id,status,date_start,date_expire,date_last,name,description,log,type,command,int_min,int_hour,int_month_day,int_month,int_week_day,running</update>
<delete>id,site_id,date_start,date_expire,date_last,name,description,log,type,command,int_min,int_hour,int_month_day,int_month,int_week_day,running</delete>
<view>id,site_id,status,date_start,date_expire,date_last,name,description,log,type,command,int_min,int_hour,int_month_day,int_month,int_week_day,running</view>
<search>id,site_id,status,date_start,date_expire,date_last,name,description,log,type,command,int_min,int_hour,int_month_day,int_month,int_week_day,running</search>
</method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<add>Add Task</add>
<view>Task</view>
</title>
<!-- Template helpers -->
<tpl>
<search_show>
<checkbox>
<field>id</field>
<type>checkbox</type>
<width>25px</width>
</checkbox>
<name>
<field>name</field>
</name>
<date_last>
<field>date_last</field>
<type>date</type>
</date_last>
<date_run>
<field>date_run</field>
<type>date</type>
</date_run>
<command>
<field>command</field>
</command>
<icon>
<field>status</field>
<type>bool_icon</type>
<width>20px</width>
</icon>
</search_show>
</tpl>
</construct>