예제 #1
0
파일: Panel.php 프로젝트: gsouf/uform
 public function __construct($title = '')
 {
     parent::__construct();
     if ($title) {
         $this->setOption('title', $title);
     }
     $this->addSemanticType('panel');
 }
예제 #2
0
파일: Column.php 프로젝트: gsouf/uform
 public function __construct($width, $scale = 100)
 {
     parent::__construct();
     $this->addSemanticType('column');
     if ($width < 0) {
         throw new Exception('Column width cant be negative');
     }
     if ($scale <= 0) {
         throw new Exception('Column width cant be 0 or negative');
     }
     $this->width = $width;
     $this->scale = $scale;
 }
예제 #3
0
파일: Tab.php 프로젝트: gsouf/uform
 public function __construct($title = null)
 {
     parent::__construct($title);
     $this->setOption('title', $title);
     $this->addSemanticType('tab');
 }
예제 #4
0
파일: ColumnGroup.php 프로젝트: gsouf/uform
 public function __construct()
 {
     parent::__construct();
     $this->addSemanticType('columnGroup');
 }
예제 #5
0
파일: Inline.php 프로젝트: gsouf/uform
 public function __construct()
 {
     parent::__construct();
     $this->addSemanticType('inline');
 }