inline = new HTMLPurifier_ChildDef_Optional ( $inline ); $this->block = new HTMLPurifier_ChildDef_Optional ( $block ); $this->elements = $this->block->elements; } /** * * @param HTMLPurifier_Node[] $children * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool */ public function validateChildren($children, $config, $context) { if ($context->get ( 'IsInline' ) === false) { return $this->block->validateChildren ( $children, $config, $context ); } else { return $this->inline->validateChildren ( $children, $config, $context ); } } } // vim: et sw=4 sts=4