當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。