Beispiel #1
0
 /**
  * @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;
 }
Beispiel #2
0
 /**
  * @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;
 }
Beispiel #3
0
 /**
  * @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;
 }
Beispiel #4
0
 /**
  * Clear value before rendering
  *
  * @param ElementView $view = null
  * @return \Forms\View\ElementView
  */
 public function buildView(ElementView $view = null)
 {
     $this->setValue('');
     return parent::buildView();
 }