public static function get($request, $match)
    {
        if (array_key_exists('userId', $match)) {
            $user = Pluf_Shortcuts_GetObjectOr404('User_Account', $match['userId']);
        } else {
            $user = $request->user;
        }
        if($user->isAnonymous()){
            throw new Pluf_Exception_BadRequest('User is not defined');
        }
        return User_Shortcuts_GetAvatar($user);
    }
public static function get($request, $match)
    {
        if (array_key_exists('userId', $match)) {
            $user = Pluf_Shortcuts_GetObjectOr404('User_Account', $match['userId']);
        } else {
            $user = $request->user;
        }
        if($user->isAnonymous()){
            throw new Pluf_Exception_BadRequest('User is not defined');
        }
        return User_Shortcuts_GetAvatar($user);
    }
public static function get ( $ request , $ match ) { if ( array_key_exists ( 'userId' , $ match ) ) { $ user = Pluf_Shortcuts_GetObjectOr404 ( 'User_Account' , $ match [ 'userId' ] ) ; } else { $ user = $ request -> user ; } if ( $ user -> isAnonymous ( ) ) { throw new Pluf_Exception_BadRequest ( 'User is not defined' ) ; } return User_Shortcuts_GetAvatar ( $ user ) ; }
Returns avatar image of user.

@param Pluf_HTTP_Request $request
@param array $match
Returns avatar image of user .