Lines Matching full:contents
135 * @param string|HTMLPurifier_ChildDef $contents Allowed children in form of:
144 … public function addElement($element, $type, $contents, $attr_includes = array(), $attr = array()) argument
148 list($content_model_type, $content_model) = $this->parseContents($contents);
161 // literal object $contents means direct child manipulation
162 if (!is_string($contents)) {
163 $this->info[$element]->child = $contents;
203 * Convenience function that transforms single-string contents
205 * @param string $contents Allowed children in form of:
208 * @note If contents is an object, an array of two nulls will be
209 * returned, and the callee needs to take the original $contents
212 public function parseContents($contents) argument
214 if (!is_string($contents)) {
217 switch ($contents) {
226 list($content_model_type, $content_model) = explode(':', $contents);