Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
cron_job_management.inc
1 <?php
18 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
19 
31 {
32 
33 
41  {
42  Asset_Management::__construct($pm);
43 
44  $this->vars = Array(
45  'type' => Array(
46  'added' => '0.0.1',
47  'type' => 'selection',
48  'default' => 'one_off',
49  'parameters' => Array(
50  'options' => Array(
51  'one_off' => 'One Off',
52  'repeating' => 'Repeating',
53  ),
54  'multiple' => FALSE,
55  'allow_empty' => FALSE,
56  ),
57  ),
58  'when' => Array(
59  'added' => '0.1',
60  'type' => 'text',
61  'default' => '',
62  'description' => 'This is an encoded description of when this job is to run',
63  ),
64  'running_as' => Array(
65  'added' => '0.2',
66  'type' => 'assetid',
67  'default' => '',
68  'description' => 'The user the cron job will run as when executed',
69  ),
70  'read_only' => Array(
71  'added' => '0.3',
72  'type' => 'boolean',
73  'default' => FALSE,
74  'description' => 'If true, only the system can delete this cron job',
75  ),
76  'running' => Array(
77  'added' => '0.4',
78  'type' => 'boolean',
79  'default' => FALSE,
80  'description' => 'running flag for potential long job',
81  ),
82  'long' => Array(
83  'added' => '0.4',
84  'type' => 'boolean',
85  'default' => FALSE,
86  'description' => 'whether this is a potential long job that will deadlock the cm',
87  'parameters' => Array(
88  'allow_empty' => FALSE,
89  ),
90  ),
91  );
92 
93  }//end constructor
94 
95 
96 }//end class
97 ?>