public static function findMe()
    {
        if (Podium::getInstance()->userComponent === true) {
            return Podium::getInstance()->user->identity;
        }
        if (static::$_identity === null) {
            static::$_identity = static::find()->where(['inherited_id' => Podium::getInstance()->user->id])->limit(1)->one();
        }
        return static::$_identity;
    }
public static function findMe()
    {
        if (Podium::getInstance()->userComponent === true) {
            return Podium::getInstance()->user->identity;
        }
        if (static::$_identity === null) {
            static::$_identity = static::find()->where(['inherited_id' => Podium::getInstance()->user->id])->limit(1)->one();
        }
        return static::$_identity;
    }
public static function findMe ( ) { if ( Podium :: getInstance ( ) -> userComponent === true ) { return Podium :: getInstance ( ) -> user -> identity ; } if ( static :: $ _identity === null ) { static :: $ _identity = static :: find ( ) -> where ( [ 'inherited_id' => Podium :: getInstance ( ) -> user -> id ] ) -> limit ( 1 ) -> one ( ) ; } return static :: $ _identity ; }
Returns current user based on module configuration.
@return static
Returns current user based on module configuration .