[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+*********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 *************************************************************************************/ 10 11 class Settings_CronTasks_Module_Model extends Settings_Vtiger_Module_Model { 12 13 var $baseTable = 'vtiger_cron_task'; 14 var $baseIndex = 'id'; 15 var $listFields = array('sequence' => 'Sequence', 'name' => 'Cron Job', 'frequency' => 'Frequency(H:M)', 'status' => 'Status', 'laststart' => 'Last Start', 'lastend' => 'Last End'); 16 var $nameFields = array(''); 17 var $name = 'CronTasks'; 18 19 /** 20 * Function to get editable fields from this module 21 * @return <Array> List of fieldNames 22 */ 23 public function getEditableFieldsList() { 24 return array('frequency', 'status'); 25 } 26 27 /** 28 * Function to update sequence of several records 29 * @param <Array> $sequencesList 30 */ 31 public function updateSequence($sequencesList) { 32 $db = PearDatabase::getInstance(); 33 34 $updateQuery = "UPDATE vtiger_cron_task SET sequence = CASE"; 35 36 foreach ($sequencesList as $sequence => $recordId) { 37 $updateQuery .= " WHEN id = $recordId THEN $sequence "; 38 } 39 $updateQuery .= " END"; 40 $db->pquery($updateQuery, array()); 41 } 42 43 public function hasCreatePermissions() { 44 return false; 45 } 46 47 public function isPagingSupported() { 48 return false; 49 } 50 51 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |