17 require_once SQ_CORE_PACKAGE_PATH.
'/site/site.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();
104 $root_urls = explode(
"\n", SQ_CONF_SYSTEM_ROOT_URLS);
105 $url_suffix =
'_'.substr($this->
type(), 11);
109 'url' => $root_urls[0].
'/'.$url_suffix,
112 'base_contextid' => 0,
115 if (!$this->saveWebUrls($urls))
return FALSE;
131 return $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->
type(),
'name');
173 SQ_LINK_TYPE_1 => Array(
176 'exclusive' => FALSE,
179 SQ_LINK_TYPE_2 => Array(
182 'exclusive' => FALSE,
185 SQ_LINK_NOTICE => Array(
188 'exclusive' => FALSE,