125 foreach($def->attr as $k => $v) {
129 foreach ($v as $v2) {
130 $this->attr[0][] = $v2;
135 if (isset($this->attr[$k])) unset($this->attr[$k]);
138 $this->attr[$k] = $v;
140 $this->
_mergeAssocArray($this->attr_transform_pre, $def->attr_transform_pre);
141 $this->
_mergeAssocArray($this->attr_transform_post, $def->attr_transform_post);
144 if(!empty($def->content_model)) {
145 $this->content_model =
146 str_replace(
"#SUPER", $this->content_model, $def->content_model);
147 $this->child =
false;
149 if(!empty($def->content_model_type)) {
150 $this->content_model_type = $def->content_model_type;
151 $this->child =
false;
153 if(!is_null($def->child)) $this->child = $def->child;
154 if(!is_null($def->formatting)) $this->formatting = $def->formatting;
155 if($def->descendants_are_inline) $this->descendants_are_inline = $def->descendants_are_inline;
165 foreach ($a2 as $k => $v) {
167 if (isset($a1[$k])) unset($a1[$k]);