コード例 #1
0
ファイル: Checkbox.php プロジェクト: comphppuebla/easy-forms
 /**
  * @param ElementView $view
  * @return ElementView
  */
 public function buildView(ElementView $view = null)
 {
     $view = new ElementView();
     /** @var ElementView $view */
     $view = parent::buildView($view);
     $view->rowBlock = 'checkbox_row';
     return $view;
 }
コード例 #2
0
ファイル: Hidden.php プロジェクト: comphppuebla/easy-forms
 /**
  * @param ElementView $view
  * @return ElementView
  */
 public function buildView(ElementView $view = null)
 {
     $view = new ElementView();
     $view = parent::buildView($view);
     $view->block = 'input';
     $view->rowBlock = 'hidden_row';
     return $view;
 }
コード例 #3
0
ファイル: File.php プロジェクト: comphppuebla/easy-forms
 /**
  * @param ElementView $view
  * @return ElementView
  */
 public function buildView(ElementView $view = null)
 {
     $view = new ElementView();
     $view = parent::buildView($view);
     $this->setValue(null);
     // Clearing the File value modifies the attributes and value properties
     $view->attributes = $this->attributes;
     $view->value = $this->value;
     return $view;
 }
コード例 #4
0
ファイル: Password.php プロジェクト: comphppuebla/easy-forms
 /**
  * Clear value before rendering
  *
  * @param ElementView $view = null
  * @return \Forms\View\ElementView
  */
 public function buildView(ElementView $view = null)
 {
     $this->setValue('');
     return parent::buildView();
 }