Ejemplo n.º 1
0
 public function process()
 {
     if (!$this->isProcessed()) {
         if ($this->getParent() instanceof NavbarElement) {
             $this->addClass('navbar-collapse');
         }
     }
     return parent::process();
 }
Ejemplo n.º 2
0
 public function process()
 {
     if (!$this->isProcessed()) {
         if ($this->getParent() instanceof TableElement) {
             $this->setTagName('COL');
         }
     }
     return parent::process();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 public function process()
 {
     if (!$this->isProcessed()) {
     }
     return parent::process();
 }