*
*/
+ /**
+ * @param $params
+ */
public function __construct($params) {
foreach ($params as $name => $param) {
$this->$name = $param;
}
}
+ /**
+ * @param null $date
+ */
public function saveLastRun($date = NULL) {
$dao = new CRM_Core_DAO_Job();
$dao->id = $this->id;
$dao->save();
}
+ /**
+ * @return bool
+ */
public function needsRunning() {
// run if it was never run
if (empty($this->last_run)) {