/** * Processes an object that is created during parsing template. * This method adds TMetaTag components into the {@link getMetaTags MetaTags} * collection of the head control. * @param string|TComponent text string or component parsed and instantiated in template * @see createdOnTemplate */ public function addParsedObject($object) { if ($object instanceof TMetaTag) { $this->getMetaTags()->add($object); } else { parent::addParsedObject($object); } }
/** * Processes an object that is created during parsing template. * This method overrides the parent implementation by removing * all contents enclosed in the template tag. * @param string|TComponent text string or component parsed and instantiated in template * @see createdOnTemplate */ public function addParsedObject($object) { if ($this->_creatingChildren) { parent::addParsedObject($object); } }