18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job.inc';
40 parent::__construct($assetid);
58 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
59 if (!system_asset_fns_create_pre_check($this)) {
62 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
63 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
65 if ($linkid = parent::create($link)) {
66 if (!system_asset_fns_create_cleanup($this)) {
72 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
74 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
77 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
94 return translate(
'cron_job_expired_matrix_locks');
140 $class_name =
'locking_method_'.SQ_CONF_LOCKING_METHOD;
141 $GLOBALS[
'SQ_SYSTEM']->am->includeAsset($class_name);
143 $canDelete = call_user_func(array($class_name,
'supportsDeletingExpiredLocks'));
146 $canDelete = call_user_func(array($class_name,
'deleteExpiredLocks'));
149 return SQ_CRON_JOB_COMPLETED;
165 $res = parent::run();
166 if ($res & SQ_CRON_JOB_REMOVE) {
167 $res = $res - SQ_CRON_JOB_REMOVE;