Exemplo n.º 1
0
 /**
  * Zend_Bitfield provides a easy interface to handle 
  * and compare bit values
  *
  * @param string $method
  * @param string $group
  * @throws Zend_Bitfield_Exception
  */
 public static function initBitfield($method = '32bit', $group = 'default')
 {
     if (!in_array($method, Zend_Bitfield::$bitMethods)) {
         Zend_Bitfield::throwException("Invalid Method ({$method})");
     }
     $methodClass = 'Zend_Bitfield_Adapter_' . $method;
     require_once 'Adapter/' . $method . '.php';
     Zend_Bitfield::$bitClass[$group] = new $methodClass();
 }