Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
cron_job_send_submission_log_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  'default' => 'repeating',
47  ),
48  'display_name' => Array(
49  'added' => '0.1',
50  'type' => 'text',
51  'default' => '',
52  'parameters' => Array(
53  'allow_empty' => FALSE,
54  ),
55  'description' => 'Name of the cron job set by the user',
56  ),
57  'first_run' => Array(
58  'added' => '0.1',
59  'type' => 'text',
60  'default' => '',
61  'description' => 'Cron jobs very initial run time set by the user',
62  ),
63  'previous_run' => Array(
64  'added' => '0.1',
65  'type' => 'text',
66  'default' => '',
67  'description' => 'Last time the job actually ran',
68  ),
69  'submissions_range' => Array(
70  'added' => '0.1',
71  'type' => 'selection',
72  'default' => 'last_run',
73  'parameters' => Array(
74  'multiple' => FALSE,
75  'allow_empty' => FALSE,
76  'options' => Array(
77  'last_run' => 'The last run',
78  'date' => 'The given "Start" date',
79  ),
80  ),
81  'description' => 'Pick the form submissions based on this option',
82  ),
83  'submissions_from_date' => Array(
84  'added' => '0.1',
85  'type' => 'datetime',
86  'default' => '---------- --:--:--',
87  'parameters' => Array(
88  'allow_null' => TRUE,
89  'show' => Array('d','m','y','h','i'),
90  ),
91  'description' => 'For very first run, look into submission logs since this date',
92  'is_admin' => TRUE,
93  ),
94  'logs_format' => Array(
95  'added' => '0.1',
96  'type' => 'selection',
97  'default' => 'csv',
98  'parameters' => Array(
99  'multiple' => FALSE,
100  'allow_empty' => FALSE,
101  'options' => Array(
102  'csv' => 'Comma seperated values (CSV)',
103  'csv_nhr' => 'Comma seperated values (CSV) - No header row',
104  'xml' => 'XML format',
105  ),
106  ),
107  'description' => 'Send submission logs in this format',
108  ),
109  'csv_delimiter' => Array(
110  'added' => '0.1',
111  'type' => 'text',
112  'default' => ',',
113  'parameters' => Array(
114  'allow_empty' => FALSE,
115  ),
116  'description' => 'Delimiter to use for submission log in CSV format',
117  ),
118  'email_format' => Array(
119  'added' => '0.1',
120  'type' => 'email_format',
121  'default' => Array(),
122  'description' => 'Email format to use when sending the submission logs',
123  ),
124  );
125 
126  }//end constructor
127 
128 }//end class
129 ?>