Prado\Web\UI\TControl::addParsedObject PHP Метод

addParsedObject() публичный Метод

This method overrides the parent implementation. Only framework developers and control developers should use this method.
См. также: createdOnTemplate
public addParsedObject ( $object )
    public function addParsedObject($object)
    {
        $this->getControls()->add($object);
    }

Usage Example

Пример #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);
     }
 }
All Usage Examples Of Prado\Web\UI\TControl::addParsedObject
TControl