public function process() { if (!$this->isProcessed()) { if ($this->getParent() instanceof NavbarElement) { $this->addClass('navbar-collapse'); } } return parent::process(); }
public function process() { if (!$this->isProcessed()) { if ($this->getParent() instanceof TableElement) { $this->setTagName('COL'); } } return parent::process(); }
public function process() { if (!$this->isProcessed()) { $dialog = new DivElement(array('CLASS' => 'modal-dialog')); $content = new DivElement(array('CLASS' => 'modal-content')); foreach ($this->getChildren() as $child) { $content->addChild($child); } $this->addChild($dialog); $dialog->addChild($content); } return parent::process(); }
public function process() { if (!$this->isProcessed()) { } return parent::process(); }