protected function _autoBuild($result) {
		$hasError = (
			isset($result['error']) &&
			isset($result['reason']) &&
			$result['reason'] === "no_db_file"
		);
		if ($hasError) {
			$this->connection->put($this->_config['database']);
			return true;
		}
		return false;
	}
protected function _autoBuild($result) {
		$hasError = (
			isset($result['error']) &&
			isset($result['reason']) &&
			$result['reason'] === "no_db_file"
		);
		if ($hasError) {
			$this->connection->put($this->_config['database']);
			return true;
		}
		return false;
	}
protected function _autoBuild ( $ result ) { $ hasError = ( isset ( $ result [ 'error' ] ) && isset ( $ result [ 'reason' ] ) && $ result [ 'reason' ] === "no_db_file" ) ; if ( $ hasError ) { $ this -> connection -> put ( $ this -> _config [ 'database' ] ) ; return true ; } return false ; }
Helper used for auto building a CouchDB database.

@param string $result A query result.
Helper used for auto building a CouchDB database .