public function loggedUser($id)
    {
        if (Podium::getInstance()->userComponent !== true) {
            return $this->andWhere(['inherited_id' => $id]);
        }
        return $this->andWhere(['id' => $id]);
    }
public function loggedUser($id)
    {
        if (Podium::getInstance()->userComponent !== true) {
            return $this->andWhere(['inherited_id' => $id]);
        }
        return $this->andWhere(['id' => $id]);
    }
public function loggedUser ( $ id ) { if ( Podium :: getInstance ( ) -> userComponent !== true ) { return $ this -> andWhere ( [ 'inherited_id' => $ id ] ) ; } return $ this -> andWhere ( [ 'id' => $ id ] ) ; }
Adds proper user ID for query.
@param int $id
Adds proper user ID for query .