156 foreach ($def->attr as $k => $v) {
160 foreach ($v as $v2) {
161 $this->attr[0][] = $v2;
166 if (isset($this->attr[$k])) {
167 unset($this->attr[$k]);
171 $this->attr[$k] = $v;
174 $this->attr_transform_pre = array_merge($this->attr_transform_pre, $def->attr_transform_pre);
175 $this->attr_transform_post = array_merge($this->attr_transform_post, $def->attr_transform_post);
177 if (!empty($def->content_model)) {
178 $this->content_model =
179 str_replace(
"#SUPER", $this->content_model, $def->content_model);
180 $this->child =
false;
182 if (!empty($def->content_model_type)) {
183 $this->content_model_type = $def->content_model_type;
184 $this->child =
false;
186 if (!is_null($def->child)) {
187 $this->child = $def->child;
189 if (!is_null($def->formatting)) {
190 $this->formatting = $def->formatting;
192 if ($def->descendants_are_inline) {
193 $this->descendants_are_inline = $def->descendants_are_inline;
204 foreach ($a2 as $k => $v) {
206 if (isset($a1[$k])) {