Exemple #1
0
 /**
  * (non-PHPdoc)
  * @see Component::onRender()
  */
 public function onRender(Action $action)
 {
     $this->set('label', $this->getLabel());
     $this->set('name', $this->getName());
     $this->set('value', $this->getValue());
     $this->set('editable', $this->editable);
     return parent::onRender($action);
 }
Exemple #2
0
 /**
  * (non-PHPdoc)
  *
  * @see Component::onRender()
  */
 public function onRender(Action $action, $data, $index)
 {
     //         if (($action->show(Form::ACTION_EDIT) && ! $this->allowEdit) || $action->show(Form::ACTION_VIEW)) {
     $this->set('displayValue', $this->getDisplayValue($action, $data, $index));
     //             $this->set('showView', true);
     //             $this->setTemplate($this->getViewTemplate());
     //         } else {
     $exists = !empty($data[Form::ID]);
     $this->set('state', $this->state);
     $this->set('stateMessage', $this->stateMessage);
     $this->set('exists', $exists);
     $this->set(Form::ID, sy_get_param($data, Form::ID));
     $this->set('id', $this->getElementId($index));
     $this->set('inputName', $this->getInputName($index));
     $this->set('name', $this->getName());
     $this->set('class', $this->getElementClass());
     $this->set('index', $index);
     $this->set('label', $this->getLabel());
     $this->set('action', $action);
     $this->set('value', $this->getValue($data));
     $this->set('disabled', $this->disabled);
     //         }
     return parent::onRender($action);
 }