17 require_once SQ_INCLUDE_PATH.
'/asset.inc';
42 $this->_ser_attrs = TRUE;
43 $this->
Asset($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;
92 $initial_path = strtolower($this->
attr(
'name'));
93 require_once SQ_INCLUDE_PATH.
'/general_occasional.inc';
94 $valid_paths = make_valid_web_paths(Array($initial_path));
95 $good_paths = $GLOBALS[
'SQ_SYSTEM']->am->webPathsInUse($link[
'asset'], $valid_paths, $this->
id, TRUE);
114 return $this->
attr(
'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);
151 SQ_LINK_TYPE_1 => Array(
154 'exclusive' => FALSE,
157 SQ_LINK_TYPE_2 => Array(
160 'exclusive' => FALSE,