public function getUser($login)
	{
		if (strlen($login) < 1) {
			throw new InvalidArgumentException("Login can't be empty");
		}
		$client = new CouchClient($this->client->dsn(), $this->usersdb, $this->client->options());
		return $client->getDoc("org.couchdb.user:" . $login);
	}
public function getUser($login)
	{
		if (strlen($login) < 1) {
			throw new InvalidArgumentException("Login can't be empty");
		}
		$client = new CouchClient($this->client->dsn(), $this->usersdb, $this->client->options());
		return $client->getDoc("org.couchdb.user:" . $login);
	}
public function getUser ( $ login ) { if ( strlen ( $ login ) < 1 ) { throw new InvalidArgumentException ( "Login can't be empty" ) ; } $ client = new CouchClient ( $ this -> client -> dsn ( ) , $ this -> usersdb , $ this -> client -> options ( ) ) ; return $ client -> getDoc ( "org.couchdb.user:" . $ login ) ; }
returns the document of a user

@param string $login login of the user to fetch
@return stdClass CouchDB document
@throws InvalidArgumentException
returns the document of a user