Lines Matching refs:def
140 $def = new HTMLPurifier_ElementDef();
141 $def->content_model = $content_model;
142 $def->content_model_type = $content_model_type;
143 $def->attr = $attr;
144 return $def;
151 * @param HTMLPurifier_ElementDef $def
153 public function mergeIn($def) argument
156 foreach ($def->attr as $k => $v) {
173 $this->_mergeAssocArray($this->excludes, $def->excludes);
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)) {
179 str_replace("#SUPER", (string)$this->content_model, $def->content_model);
182 if (!empty($def->content_model_type)) {
183 $this->content_model_type = $def->content_model_type;
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;