本文整理汇总了PHP中Zend_Form_Element::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element::render方法的具体用法?PHP Zend_Form_Element::render怎么用?PHP Zend_Form_Element::render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element
的用法示例。
在下文中一共展示了Zend_Form_Element::render方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
public function render(Zend_View_Interface $view = null)
{
$realName = $this->getName();
foreach ($this->_parentForm->getElements() as $key => $element) {
if ($element === $this) {
$realName = $key;
}
}
$this->setDecorators(array(new Media_Form_Decorator_MultiFile()));
$ticket = Centurion_Db::getSingleton('media/multiupload_ticket')->createTicket($this->_parentForm, $realName);
$this->setAttrib('ticket', $ticket->ticket);
return parent::render($view);
}
示例2: render
public function render(Zend_View_Interface $view = null)
{
$this->removeDecorator('Label');
return parent::render();
}
示例3: _renderElement
/**
* Renders an element with only the view helper decorator
*
* @param Zend_Form_Element $element
*/
protected function _renderElement(Zend_Form_Element $element)
{
$element->setDecorators(array('ViewHelper'));
return trim($element->render($this->getElement()->getView()));
}
示例4: render
/**
* Render form element
*
* @param Zend_View_Interface $view
* @return string
*/
public function render(Zend_View_Interface $view = null)
{
$this->setBootstrapConfiguration();
return $this->bsUtils->divFormGroup(parent::render($view));
}
示例5: render
public function render(Zend_View_Interface $view = null)
{
$file = Centurion_Db::getSingleton('media/file')->findOneById($this->_value);
return parent::render($view) . '<img src="' . $file->getStaticUrl(array('resize' => array('maxWidth' => 100, 'maxHeight' => 100))) . '" />';
}