Beispiel #1
0
 /**
  * Creates a new empty pane with the given title
  *
  * @param string $title
  *
  * @return $this
  */
 public function createPane($title)
 {
     $pane = new Pane($title);
     $pane->setTitle($title);
     $this->addPane($pane);
     return $this;
 }
Beispiel #2
0
 /**
  * Create a new pane with the title $title from the given configuration
  *
  * @param $title                The title for this pane
  * @param ConfigObject  $config The configuration to use for setup
  *
  * @return Pane
  */
 public static function fromIni($title, ConfigObject $config)
 {
     $pane = new Pane($title);
     if ($config->get('title', false)) {
         $pane->setTitle($config->get('title'));
     }
     return $pane;
 }