예제 #1
0
 public function render()
 {
     /*
      * Refs #620
      * Client commands are applied to the appointed widget to keep the view consistent
      * in both CLIENT and SERVER modes.
      */
     $this->invokeCommands();
     $content = parent::render();
     if ($this->canEscapeUnobstrusive($this->getAttribute('flags', 0))) {
         $content = $this->escapeUnobstrusive($content);
     }
     if (NETHGUI_ENABLE_INCLUDE_WIDGET) {
         $types = array_merge(array('Nethgui:base'), $this->getJsWidgetTypes());
         foreach ($types as $type) {
             $typeParts = explode(':', $type);
             $this->getRenderer()->includeFile(sprintf('%s/Js/jquery.nethgui.%s.js', $typeParts[0], $typeParts[1]));
         }
     }
     return $content;
 }
예제 #2
0
 public function render($data = array())
 {
     parent::render($this->getData());
 }