Exemplo n.º 1
0
 /**
  * Set whether or not dijits should be created programmatically
  *
  * Optionally, specifiy whether or not dijit helpers should generate the
  * programmatic dojo.
  *
  * @param  int $style
  * @return void
  */
 public static function setUseProgrammatic($style = self::PROGRAMMATIC_SCRIPT)
 {
     if (!in_array($style, array(self::PROGRAMMATIC_SCRIPT, self::PROGRAMMATIC_NOSCRIPT))) {
         $style = self::PROGRAMMATIC_SCRIPT;
     }
     self::$_useProgrammatic = $style;
 }