17 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job.inc';
18 require_once SQ_FUDGE_PATH.
'/db_extras/db_extras.inc';
42 parent::__construct($assetid);
60 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
61 if (!system_asset_fns_create_pre_check($this)) {
64 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
65 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
67 if ($linkid = parent::create($link)) {
68 if (!system_asset_fns_create_cleanup($this)) {
74 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
76 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
79 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
96 return $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->
type(),
'name');
127 trigger_localised_error(
'CRON0024', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
163 $suite_manager = $GLOBALS[
'SQ_SYSTEM']->am->getSystemAsset(
'suite_manager');
164 if ($suite_manager !== NULL) {
165 $current_product = $suite_manager->getCurrentProduct();
166 if (empty($current_product) === FALSE) {
167 $suite_manager->syncWithLiveProducts();
171 return SQ_CRON_JOB_COMPLETED;
188 $res = parent::run();
189 if ($res & SQ_CRON_JOB_REMOVE) {
190 $res = $res - SQ_CRON_JOB_REMOVE;