18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job.inc';
44 $this->_ser_attrs = TRUE;
45 parent::__construct($assetid);
63 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
64 if (!system_asset_fns_create_pre_check($this)) {
67 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
68 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
70 if ($linkid = parent::create($link)) {
71 if (!system_asset_fns_create_cleanup($this)) {
77 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
79 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
82 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
99 return $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->
type(),
'name');
130 trigger_localised_error(
'CRON0024', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
164 $bridge_ids = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'cmis_bridge', TRUE, TRUE);
165 foreach ($bridge_ids as $bridge_id => $type) {
166 if ($GLOBALS[
'SQ_SYSTEM']->am->assetInTrash($bridge_id, TRUE))
continue;
168 $hh = $GLOBALS[
'SQ_SYSTEM']->getHipoHerder();
169 $running_vars = Array (
170 'bridge_id' => $bridge_id
172 $errors = $hh->freestyleHipo(
'hipo_job_sync_cmis_bridge', $running_vars, SQ_PACKAGES_PATH.
'/sharepoint/hipo_jobs/');
173 if (!empty($errors)) trigger_error(
"CMIS Bridge (Id #:$bridge_id) HIPO errors:\n".print_r($errors, TRUE), E_USER_WARNING);
176 return SQ_CRON_JOB_COMPLETED;
193 $res = parent::run();
194 if ($res & SQ_CRON_JOB_REMOVE) {
195 $res = $res - SQ_CRON_JOB_REMOVE;