当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Form_Element_Hidden::render方法代码示例

本文整理汇总了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);
    }
开发者ID:s-kalaus,项目名称:zkernel,代码行数:16,代码来源:Blueimp.php

示例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);
    }
开发者ID:s-kalaus,项目名称:zkernel,代码行数:20,代码来源:Uploadify3.php

示例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);
    }
开发者ID:s-kalaus,项目名称:zkernel,代码行数:22,代码来源:Uploadify.php

示例4: _buildCropDataElement

 protected function _buildCropDataElement()
 {
     $element = new Zend_Form_Element_Hidden(array('name' => $this->_attribs['name'] . 'CropData', 'decorators' => array('ViewHelper')));
     return $element->render();
 }
开发者ID:komik966,项目名称:recruitment,代码行数:5,代码来源:FileImage.php


注:本文中的Zend_Form_Element_Hidden::render方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。