public static function loggedId()
    {
        if (Podium::getInstance()->user->isGuest) {
            return null;
        }
        if (Podium::getInstance()->userComponent !== true) {
            $user = static::findMe();
            if (empty($user)) {
                return null;
            }
            return $user->id;
        }
        return Podium::getInstance()->user->id;
    }
public static function loggedId()
    {
        if (Podium::getInstance()->user->isGuest) {
            return null;
        }
        if (Podium::getInstance()->userComponent !== true) {
            $user = static::findMe();
            if (empty($user)) {
                return null;
            }
            return $user->id;
        }
        return Podium::getInstance()->user->id;
    }
public static function loggedId ( ) { if ( Podium :: getInstance ( ) -> user -> isGuest ) { return null ; } if ( Podium :: getInstance ( ) -> userComponent !== true ) { $ user = static :: findMe ( ) ; if ( empty ( $ user ) ) { return null ; } return $ user -> id ; } return Podium :: getInstance ( ) -> user -> id ; }
Returns ID of current logged user.
@return int
Returns ID of current logged user .