18 require_once SQ_INCLUDE_PATH.
'/asset.inc';
43 parent::__construct($assetid);
60 if (!parent::_preCreateCheck($link))
return FALSE;
62 $name = trim($this->
attr(
'name'));
64 trigger_localised_error(
'CORE0083', E_USER_WARNING, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->type(),
'name'));
85 if (!parent::_createAdditional($link))
return FALSE;
89 if (empty($link))
return TRUE;
106 protected function _getName($short_name=FALSE, $contextid=NULL)
109 if ($contextid === NULL) {
110 $contextid = $GLOBALS[
'SQ_SYSTEM']->getContextId();
114 $values = $GLOBALS[
'SQ_SYSTEM']->am->getAttributeValuesByName(
'name', $this->
type(), Array($this->
id), $contextid);
115 if (empty($values) === TRUE) {
116 return parent::_getName($short_name, $contextid);
118 return $values[$this->id];
135 SQ_LINK_TYPE_1 => Array(
138 'exclusive' => FALSE,
141 SQ_LINK_TYPE_2 => Array(
144 'exclusive' => FALSE,
147 SQ_LINK_TYPE_3 => Array(
150 'exclusive' => FALSE,
153 SQ_LINK_NOTICE => Array(
156 'exclusive' => FALSE,