Zend/Gdata/Gapps.php
public function retrieveUser ($username) {
        $query = $this->newUserQuery($username);
        try {
            $user = $this->getUserEntry($query);
        } catch (Zend_Gdata_Gapps_ServiceException $e) {
            // Set the user to null if not found
            if ($e->hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) {
                $user = null;
            } else {
                throw $e;
            }
        }
        return $user;
    }
public function retrieveUser ($username) {
        $query = $this->newUserQuery($username);
        try {
            $user = $this->getUserEntry($query);
        } catch (Zend_Gdata_Gapps_ServiceException $e) {
            // Set the user to null if not found
            if ($e->hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) {
                $user = null;
            } else {
                throw $e;
            }
        }
        return $user;
    }
public function retrieveUser ( $ username ) { $ query = $ this -> newUserQuery ( $ username ) ; try { $ user = $ this -> getUserEntry ( $ query ) ; } catch ( Zend_Gdata_Gapps_ServiceException $ e ) { // Set the user to null if not found if ( $ e -> hasError ( Zend_Gdata_Gapps_Error :: ENTITY_DOES_NOT_EXIST ) ) { $ user = null ; } else { throw $ e ; } } return $ user ; }
Retrieve a user based on their username.

@param string $username The username to search for.
@return Zend_Gdata_Gapps_UserEntry The username to search for, or null
if no match found.
@throws Zend_Gdata_App_InvalidArgumentException
@throws Zend_Gdata_App_HttpException
Retrieve a user based on their username .