GBUser::find PHP Method

find() static public method

static public find ( $email = null )
    static function find($email = null)
    {
        if ($email !== null) {
            $email = strtolower($email);
        }
        return self::storage()->get($email);
    }

Usage Example

Esempio n. 1
0
 /** Tries to resolve committer as a GBUser */
 function committerUser()
 {
     $user = $this->committerEmail ? GBUser::find($this->committerEmail) : null;
     if ($user === null) {
         return $default;
     }
 }
All Usage Examples Of GBUser::find