當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Form_Element_Xhtml::render方法代碼示例

本文整理匯總了PHP中Zend_Form_Element_Xhtml::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_Element_Xhtml::render方法的具體用法?PHP Zend_Form_Element_Xhtml::render怎麽用?PHP Zend_Form_Element_Xhtml::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Form_Element_Xhtml的用法示例。


在下文中一共展示了Zend_Form_Element_Xhtml::render方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render

 /**
  * Render form element
  *
  * @param  Zend_View_Interface $view
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $captcha = $this->getCaptcha();
     $captcha->setName($this->getFullyQualifiedName());
     if (!$this->loadDefaultDecoratorsIsDisabled()) {
         $decorators = $this->getDecorators();
         $decorator = $captcha->getDecorator();
         $key = get_class($this->_getDecorator($decorator, null));
         if (!empty($decorator) && !array_key_exists($key, $decorators)) {
             array_unshift($decorators, $decorator);
         }
         $decorator = array('Captcha', array('captcha' => $captcha));
         $key = get_class($this->_getDecorator($decorator[0], $decorator[1]));
         if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
             array_unshift($decorators, $decorator);
         }
         $this->setDecorators($decorators);
     }
     $this->setValue($this->getCaptcha()->generate());
     return parent::render($view);
 }
開發者ID:Yaoming9,項目名稱:Projet-Web-PhP,代碼行數:27,代碼來源:Captcha.php

示例2: render

 /**
  * Render form element
  * Checks for decorator interface to prevent errors
  *
  * @param  Zend_View_Interface $view
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $marker = false;
     foreach ($this->getDecorators() as $decorator) {
         if ($decorator instanceof Zend_Form_Decorator_Marker_File_Interface) {
             $marker = true;
         }
     }
     if (!$marker) {
         require_once 'Zend/Form/Element/Exception.php';
         throw new Zend_Form_Element_Exception('No file decorator found... unable to render file element');
     }
     return parent::render($view);
 }
開發者ID:BGCX067,項目名稱:f1n4l-pr0j3c7-f0r-t3h-0n35-wh0-n33d-17-svn-to-git,代碼行數:21,代碼來源:File.php

示例3: render

 /**
  * Render CSRF token in form
  *
  * @param  Zend_View_Interface $view
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $this->initCsrfToken();
     return parent::render($view);
 }
開發者ID:NerdGZ,項目名稱:icingaweb2,代碼行數:11,代碼來源:Hash.php

示例4: render

 /**
  * Render form element
  *
  * @param  Zend_View_Interface $view
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $captcha = $this->getCaptcha();
     $captcha->setName($this->getFullyQualifiedName());
     $decorators = $this->getDecorators();
     $decorator = $captcha->getDecorator();
     if (!empty($decorator)) {
         array_unshift($decorators, $decorator);
     }
     $decorator = array('Captcha', array('captcha' => $captcha));
     array_unshift($decorators, $decorator);
     $this->setDecorators($decorators);
     $this->setValue($this->getCaptcha()->generate());
     return parent::render($view);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:21,代碼來源:Captcha.php

示例5: render

 /**
  * Render
  *
  * Ensure that options property is set when rendering.
  * 
  * @param  Zend_View_Interface $view 
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $this->options = array('checked' => $this->getCheckedValue(), 'unChecked' => $this->getUncheckedValue());
     return parent::render($view);
 }
開發者ID:bitExpert,項目名稱:Tine-2.0-Open-Source-Groupware-and-CRM,代碼行數:13,代碼來源:Checkbox.php

示例6: render

 /**
  * Render CSRF token in form
  *
  * @param  Zend_View_Interface $view
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $this->setValue($this->_token);
     return parent::render($view);
 }
開發者ID:lchen01,項目名稱:STEdwards,代碼行數:11,代碼來源:SessionCsrfToken.php


注:本文中的Zend_Form_Element_Xhtml::render方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。