addParsedObject() public method

This method overrides the parent implementation. Only framework developers and control developers should use this method.
See also: createdOnTemplate
public addParsedObject ( $object )
Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 /**
  * 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);
     }
 }