| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* This interface defines methods that need to be implemented
var $_source = NULL;
- /*
- * Class constructor
- *
- * @param void
- */
/**
+ * Class constructor.
+ *
+ * @return void
*/
public function __construct() {
$config = CRM_Core_Config::singleton();
$this->jobs = $this->_getJobs();
}
- /*
- *
- * @param void
- */
/**
* @param bool $auth
*/
$this->logEntry('Finishing scheduled jobs execution.');
}
- /*
- * Class destructor
- *
- * @param void
+ /**
+ * Class destructor.
*/
public function __destruct() {
}
$this->currentJob = FALSE;
}
- /*
+ /**
* Retrieves the list of jobs from the database,
* populates class param.
*
- * @param void
* @return array
* ($id => CRM_Core_ScheduledJob)
*/
- /**
- * @return array
- */
private function _getJobs() {
$jobs = array();
$dao = new CRM_Core_DAO_Job();
return $jobs;
}
- /*
- * Retrieves specific job from the database by id
+ /**
+ * Retrieves specific job from the database by id.
* and creates ScheduledJob object.
*
- * @param void
- */
- /**
* @param int $id
* @param null $entity
* @param null $action
$this->singleRunParams[$key]['version'] = 3;
}
- /*
+ /**
+ * @param string $message
*
- * @return array|null
+ * @return void
* collection of permissions, null if none
*/
- /**
- * @param $message
- */
public function logEntry($message) {
$domainID = CRM_Core_Config::domainID();
$dao = new CRM_Core_DAO_JobLog();
$message = $apiResult['is_error'] ? ', Error message: ' . $msg : " (" . $vals . ")";
return $status . $message;
}
+
}
/**