18 require_once SQ_CORE_PACKAGE_PATH.
'/designs/design_area/design_area.inc';
43 parent::__construct($assetid);
56 public function attr($name)
58 if (empty($this->vars[
'declared_vars'][
'value'][$name])) {
59 return parent::attr($name);
61 return $this->vars[
'declared_vars'][
'value'][$name][
'value'];
90 foreach ($this->vars[
'declared_vars'][
'value'] as $name => $data) {
91 $type = basename($data[
'type']);
93 require_once SQ_ATTRIBUTES_PATH.
'/'.$type.
'/'.$type.
'.inc';
94 $attr_class =
'Asset_Attribute_'.$type;
95 if (!class_exists($attr_class)) {
96 trigger_localised_error(
'CORE0146', E_USER_WARNING, $type, $name);
99 $attrs[$name] =
new $attr_class(0, $data[
'value']);
100 $attrs[$name]->name = $name;
118 $current_attrs = $this->
attr(
'declared_vars');
119 foreach ($parent_attrs as $id => $value) {
120 if (isset($current_attrs[$id])) {
121 $parent_attrs[$id] = $current_attrs[$id];