18 require_once SQ_CORE_PACKAGE_PATH.
'/users/user_group/user_group.inc';
61 require_once SQ_CORE_PACKAGE_PATH.
'/system/system_asset_fns.inc';
62 if (!system_asset_fns_create_pre_check($this)) {
66 $GLOBALS[
'SQ_SYSTEM']->changeDatabaseConnection(
'db2');
67 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'BEGIN');
69 if ($linkid = parent::create($link)) {
70 if (!system_asset_fns_create_cleanup($this)) {
76 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'COMMIT');
78 $GLOBALS[
'SQ_SYSTEM']->doTransaction(
'ROLLBACK');
81 $GLOBALS[
'SQ_SYSTEM']->restoreDatabaseConnection();
112 trigger_localised_error(
'CORE0091', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
130 if ($name ==
'name') {
131 trigger_localised_error(
'CORE0111', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
135 return parent::setAttrValue($name, $value);
168 if ($GLOBALS[
'SQ_SYSTEM']->userRoot())
return TRUE;
170 if (($perm & SQ_PERMISSION_READ) && $GLOBALS[
'SQ_SYSTEM']->userSystemAdmin()) {
188 SQ_LINK_TYPE_1 => Array(
191 'exclusive' => FALSE,
194 SQ_LINK_TYPE_2 => Array(
197 'exclusive' => FALSE,
200 SQ_LINK_TYPE_3 => Array(),
201 SQ_LINK_NOTICE => Array(),