コード例 #1
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildParent()
 {
     if ($this->getModel()->getId() == 1) {
         return 'root';
     }
     $items = Service::renderList();
     return Util\Form::buildDropdown('parentId' . $this->unique, $items, $this->getModel()->getParentId(), false, [$this->getModel()->getId()]);
 }
コード例 #2
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildParent()
 {
     if ($this->getModel()->getId() == 1) {
         return '<span class="input">' . Util\Lang::lang('home') . '</span>';
     }
     $items = Service::renderList();
     $disabled = [];
     $disabled[] = $this->getModel()->getId();
     return Util\Form::buildDropdown('parentId' . $this->unique, $items, $this->getModel()->getParentId(), true, $disabled);
 }
コード例 #3
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildStatus()
 {
     return Util\Form::buildDropdown('status' . $this->unique, $this->getModel()->getStatusList(), $this->getModel()->getStatus());
 }
コード例 #4
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildPaging()
 {
     return Util\Form::buildDropdown('paging' . $this->unique, $this->getModel()->getPagingList(), $this->getModel()->getPaging());
 }
コード例 #5
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildVersion()
 {
     return Util\Form::buildDropdown('version' . $this->unique, $this->getModel()->getVersionList(), $this->getModel()->getVersion());
 }
コード例 #6
0
ファイル: Form.php プロジェクト: vincium/bourg-la-reine
 public function buildType()
 {
     return Util\Form::buildDropdown('type' . $this->unique, $this->getModel()->getTypeList(), $this->getModel()->getType());
 }