/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('minLength', $this->minLength); $this->set('maxLength', $this->maxLength); $this->set('mask', $this->mask); return parent::onRender($action, $data, $index); }
/** * * @param \Simplify\Form\Action $action * @param unknown_type $data * @param unknown_type $index */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('trueLabel', $this->getTrueLabel()); $this->set('trueValue', $this->trueValue); $this->set('falseLabel', $this->getFalseLabel()); $this->set('falseValue', $this->falseValue); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('options', $this->getOptions()); $this->set('showEmpty', $this->showEmpty); $this->set('emptyLabel', $this->emptyLabel); $this->set('emptyValue', $this->emptyValue); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $wysiwygOptions = array(); $wysiwygOptions['uploaderUrl'] = $this->getServiceUrl(\Simplify\Form::SERVICE_UPLOAD)->build(); $wysiwygOptions['browserUrl'] = $this->getServiceUrl(self::SERVICE_BROWSER)->format(false)->build(); $this->set('wysiwygOptions', json_encode($wysiwygOptions)); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * * @see \Simplify\Form\Element::onRender() */ public function onRender(Action $action, $data, $index) { $this->set('prefix', $this->prefix); $this->set('suffix', $this->suffix); $this->set('decimalSeparator', $this->decimalSeparator); $this->set('thousandsSeparator', $this->thousandsSeparator); $this->set('precision', $this->precision); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $file = $this->getValue($data); if (!empty($file)) { if ($this->fileExists($file)) { $fileUrl = $this->getFileUrl($file); } else { $fileUrl = false; } $this->set('fileUrl', $fileUrl); } $this->set('maxSize', sy_get_max_upload_size()); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('options', $this->getOptions($data)); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $value = $this->getValue($data); $this->set('formatedBeginValue', \Simplify\Form\DateTime::datetime($value['begin'])); $this->set('formatedEndValue', \Simplify\Form\DateTime::datetime($value['end'])); $this->set('defaultRange', $this->defaultRange); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('formatedValue', $this->getDisplayValue($action, $data, $index)); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('askForConfirmation', $this->askForConfirmation); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $this->set('checkedValue', $this->checkedValue); return parent::onRender($action, $data, $index); }
/** * (non-PHPdoc) * @see \Simplify\Form\Element::onRender() */ public function onRender(\Simplify\Form\Action $action, $data, $index) { $file = $this->getValue($data); $thumbUrl = null; $imageUrl = null; if (!empty($file)) { if ($this->fileExists($file)) { $thumbUrl = $this->getThumbUrl($file, $this->thumbWidth, is_numeric($this->thumbHeight) ? $this->thumbHeight : $this->thumbWidth); $imageUrl = $this->getImageUrl($file); } else { $thumbUrl = false; $imageUrl = false; } } $this->set('thumbUrl', $thumbUrl); $this->set('imageUrl', $imageUrl); return parent::onRender($action, $data, $index); }