示例#1
0
 /**
  * Defines the default grid configuration
  *
  * @param Zend_Config|array $options Config Options
  *
  * @throws Bvb_Grid_Exception
  * @static
  *
  * @return void
  */
 public static function setDefaultConfig($options)
 {
     if ($options instanceof Zend_Config) {
         $options = $options->toArray();
     } elseif (!is_array($options)) {
         throw new Bvb_Grid_Exception('options must be an instance from Zend_Config or an array');
     }
     self::$_defaultConfig = $options;
 }