本文整理匯總了PHP中Zend_Form_Element_Hidden::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_Element_Hidden::render方法的具體用法?PHP Zend_Form_Element_Hidden::render怎麽用?PHP Zend_Form_Element_Hidden::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Form_Element_Hidden
的用法示例。
在下文中一共展示了Zend_Form_Element_Hidden::render方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render
public function render(Zend_View_Interface $view = null)
{
$o = array('dataType' => 'json', 'url' => '/z/fu');
$o = array_merge($o, $this->getAttribs());
$s = new Zend_Session_Namespace();
$js = '$.include(["/zkernel/ctl/blueimp/js/vendor/jquery.ui.widget.js", "/zkernel/ctl/blueimp/js/jquery.iframe-transport.js", "/zkernel/ctl/blueimp/js/jquery.fileupload.js"], function() {
$("#' . $this->getName() . '").fileupload(' . Zend_Json::encode($o, false, array('enableJsonExprFinder' => true)) . ');
});';
if (!isset($this->url)) {
$this->url = str_ireplace(PUBLIC_PATH, '', $this->destination);
}
$this->required = $this->isRequired();
$s->form[$this->getName()] = array('folder' => $this->destination, 'value' => $this->getValue(), 'validators' => $this->getValidators());
$this->getView()->inlineScript('script', $js);
return parent::render($view);
}
示例2: render
public function render(Zend_View_Interface $view = null)
{
$o = array('buttonText' => 'Browse...', 'fileObjName' => $this->getName(), 'postData' => array('folder' => '/' . $this->destination, 'old' => $this->getAttrib('multi') ? 'multi' : $this->getValue(), 'sid' => session_id()));
$o = array_merge($o, $this->getAttribs());
if ($this->getAttrib('multi')) {
$o['multi'] = 1;
}
$s = new Zend_Session_Namespace();
$js = '$.include("/zkernel/ctl/uploadify3/uploadify.css|link");
$.include(["/zkernel/js/swfobject.js", "/zkernel/ctl/uploadify3/jquery.uploadify.js", "/zkernel/ctl/uploadify3/zuploadify.js"], function() {
$("input[type=file][name=' . $this->getName() . ']").zuploadify(' . Zend_Json::encode($o) . ');
});';
if (!isset($this->url)) {
$this->url = str_ireplace(PUBLIC_PATH, '', $this->destination);
}
$this->required = $this->isRequired();
$s->form[$this->getName()] = array('folder' => $this->destination, 'value' => $this->getValue(), 'validators' => $this->getValidators());
$this->getView()->inlineScript('script', $js);
return parent::render($view);
}
示例3: render
public function render(Zend_View_Interface $view = null)
{
$o = array('buttonText' => 'Browse...', 'fileDataName' => $this->getName(), 'folder' => '/' . $this->destination, 'scriptData' => array('length' => $this->getAttrib('length') ? $this->getAttrib('length') : 20, 'old' => $this->getAttrib('multi') ? 'multi' : $this->getValue(), 'sid' => session_id()));
$o = array_merge($o, $this->getAttribs());
if ($this->getAttrib('multi')) {
$o['multi'] = 1;
}
$crop = $this->getAttrib('jcrop');
$s = new Zend_Session_Namespace();
$js = '$.include("/zkernel/ctl/uploadify/uploadify.css|link");
' . ($crop ? '$.include("/zkernel/ctl/jcrop/css/jquery.jcrop.css|link");' : '') . '
$.include(["/zkernel/js/swfobject.js", "/zkernel/ctl/uploadify/jquery.uploadify.js", "/zkernel/ctl/uploadify/zuploadify.js"' . ($crop ? ', "/zkernel/ctl/jcrop/js/jquery.jcrop.js"' : '') . '], function() {
zuf.init(' . Zend_Json::encode($o, false, array('enableJsonExprFinder' => true)) . ');
});';
if (!isset($this->url)) {
$this->url = str_ireplace(PUBLIC_PATH, '', $this->destination);
}
$this->required = $this->isRequired();
$s->form[$this->getName()] = array('folder' => $this->destination, 'value' => $this->getValue(), 'validators' => $this->getValidators());
$this->getView()->inlineScript('script', $js);
return parent::render($view);
}
示例4: _buildCropDataElement
protected function _buildCropDataElement()
{
$element = new Zend_Form_Element_Hidden(array('name' => $this->_attribs['name'] . 'CropData', 'decorators' => array('ViewHelper')));
return $element->render();
}