Esempio n. 1
0
 /**
  * Renders stylesheets. Static method so they can be rendered once
  * in a page with delayed execution (AJAX calls).
  */
 public static function renderStylesheets()
 {
     SZend_Dojo_View_Helper_Dojo_Extended::addStylesheet('/dojox/grid/resource/Grid.css');
     SZend_Dojo_View_Helper_Dojo_Extended::addStylesheet('/dojox/grid/resources/' . self::getTheme() . 'Grid.css');
 }
Esempio n. 2
0
 /**
  * Setup the dialog type and add stylesheets if needed. 
  */
 protected function _setup($params)
 {
     $this->_module = self::$_dialogType;
     if (array_key_exists('enhanced', $params)) {
         switch ($params['enhanced']) {
             case self::DIALOG_DOJOX:
                 SZend_Dojo_View_Helper_Dojo_Extended::addStylesheet('/dojox/widget/Dialog/Dialog.css');
                 $this->_module = self::DIALOG_DOJOX;
                 break;
             default:
                 $this->_module = self::DIALOG_DOJO;
         }
         unset($params['enhanced']);
     }
     $this->_dijit = $this->_module;
 }