Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
Arquivo: Link.php Projeto: jager/cms
 public function render(Zend_View_Interface $view = null)
 {
     $this->removeDecorator('Label');
     return parent::render();
 }
Exemplo n.º 3
0
 /**
  * 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()));
 }
Exemplo n.º 4
0
 /**
  * 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));
 }
Exemplo n.º 5
0
 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))) . '" />';
 }