comparebit($key, $value); } /** * Creates a new bit key * * @param string $key * @param string $group * @return int */ static public function createBit($key, $group = 'default') { return Zend_Bitfield::$bitClass[$group]->createBit($key); } /** * Returns and array of all the bits * * @param string $group * @returnarray */ static public function getBits($group = 'default') { return Zend_Bitfield::$bitClass[$group]->getBits(); } /** * Used to load an array of bits * * @param array $input * @param string $group * @return array */ static public function loadBits($input, $group = 'default') { return Zend_Bitfield::$bitClass[$group]->loadBits($input); } /** * Handles exceptions * * @param string $msg */ static public function throwException($msg) { # require_once('Zend/Bitfield/Exception'); # throw new Zend_Bitfield_Exception($msg); echo $msg; exit(); } }