132 foreach($def->attr as $k => $v) {
136 foreach ($v as $v2) {
137 $this->attr[0][] = $v2;
142 if (isset($this->attr[$k])) unset($this->attr[$k]);
145 $this->attr[$k] = $v;
147 $this->
_mergeAssocArray($this->attr_transform_pre, $def->attr_transform_pre);
148 $this->
_mergeAssocArray($this->attr_transform_post, $def->attr_transform_post);
151 if(!empty($def->content_model)) {
152 $this->content_model =
153 str_replace(
"#SUPER", $this->content_model, $def->content_model);
154 $this->child =
false;
156 if(!empty($def->content_model_type)) {
157 $this->content_model_type = $def->content_model_type;
158 $this->child =
false;
160 if(!is_null($def->child)) $this->child = $def->child;
161 if(!is_null($def->formatting)) $this->formatting = $def->formatting;
162 if($def->descendants_are_inline) $this->descendants_are_inline = $def->descendants_are_inline;
172 foreach ($a2 as $k => $v) {
174 if (isset($a1[$k])) unset($a1[$k]);