コード例 #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');
 }