18 require_once SQ_INCLUDE_PATH.
'/asset.inc';
43 $this->_ser_attrs = TRUE;
44 parent::__construct($assetid);
61 if (!parent::_createAdditional($link))
return FALSE;
64 $initial_path = strtolower($this->
attr(
'name'));
65 require_once SQ_INCLUDE_PATH.
'/general_occasional.inc';
66 $valid_paths = make_valid_web_paths(Array($initial_path));
67 $good_paths = $GLOBALS[
'SQ_SYSTEM']->am->webPathsInUse($link[
'asset'], $valid_paths, $this->
id, TRUE);
82 protected function _getName($short_name=FALSE, $contextid=NULL)
85 if ($contextid === NULL) {
86 $contextid = $GLOBALS[
'SQ_SYSTEM']->getContextId();
90 $values = $GLOBALS[
'SQ_SYSTEM']->am->getAttributeValuesByName(
'name', $this->
type(), Array($this->
id), $contextid);
91 if (empty($values) === TRUE) {
92 return parent::_getName($short_name, $contextid);
94 return $values[$this->id];
98 return $this->
attr(
'name');
113 SQ_LINK_TYPE_1 => Array(
114 'folder' => Array(
'card' =>
'M',
'exclusive' => FALSE),