Exemplo n.º 1
0
 /**
  *
  * {@inheritDoc}
  *
  * @see \Core\Html\Bootstrap\Panel\AbstractPanelElement::build()
  */
 public function build()
 {
     if (!empty($this->title)) {
         $this->inner = $this->title->build();
     }
     return parent::build();
 }
Exemplo n.º 2
0
 /**
  * Creates a PanelTitle object, adds it by default as title to use in the heading and returns a reference to it
  *
  * @param string $text
  *            Optional text to fill in as title content.
  * @param boolean $autoadd
  *            Optional flag to dis-/enable autoadd of created object as title object
  *
  * @return \Core\Html\Bootstrap\Panel\PanelTitle
  */
 public function &createTitle($text = '', $autoadd = true)
 {
     $title = new PanelTitle();
     if (!empty($text)) {
         $title->setTitle($text);
     }
     if ($autoadd) {
         $this->title = $title;
     }
     return $title;
 }