handle = dba_open( $fileName, 'r-', 'cdb' ); if ( !$this->handle ) { throw new Exception( 'Unable to open CDB file "' . $fileName . '"' ); } } public function close() { if ( isset( $this->handle ) ) { dba_close( $this->handle ); } unset( $this->handle ); } public function get( $key ) { return dba_fetch( $key, $this->handle ); } public function exists( $key ) { return dba_exists( $key, $this->handle ); } public function firstkey() { return dba_firstkey( $this->handle ); } public function nextkey() { return dba_nextkey( $this->handle ); } }