144 foreach($def->attr as $k => $v) {
148 foreach ($v as $v2) {
149 $this->attr[0][] = $v2;
154 if (isset($this->attr[$k])) unset($this->attr[$k]);
157 $this->attr[$k] = $v;
160 $this->attr_transform_pre = array_merge($this->attr_transform_pre, $def->attr_transform_pre);
161 $this->attr_transform_post = array_merge($this->attr_transform_post, $def->attr_transform_post);
163 if(!empty($def->content_model)) {
164 $this->content_model =
165 str_replace(
"#SUPER", $this->content_model, $def->content_model);
166 $this->child =
false;
168 if(!empty($def->content_model_type)) {
169 $this->content_model_type = $def->content_model_type;
170 $this->child =
false;
172 if(!is_null($def->child)) $this->child = $def->child;
173 if(!is_null($def->formatting)) $this->formatting = $def->formatting;
174 if($def->descendants_are_inline) $this->descendants_are_inline = $def->descendants_are_inline;
184 foreach ($a2 as $k => $v) {
186 if (isset($a1[$k])) unset($a1[$k]);