src/ShopBundle/objects/db/TShopPaymentMethod.class.php
protected function checkUser(TdbDataExtranetUser $oUser)
    {
        $bIsValidForUser = false;
        $aUserList = $this->getPaymentMethodDataAccess()->getPermittedUserIds($this->id);
        if (!is_array($aUserList) || count($aUserList) < 1) {
            $bIsValidForUser = true;
        } elseif ($oUser->IsLoggedIn()) {
            $bIsValidForUser = in_array($oUser->id, $aUserList);
        }

        return $bIsValidForUser;
    }
protected function checkUser(TdbDataExtranetUser $oUser)
    {
        $bIsValidForUser = false;
        $aUserList = $this->getPaymentMethodDataAccess()->getPermittedUserIds($this->id);
        if (!is_array($aUserList) || count($aUserList) < 1) {
            $bIsValidForUser = true;
        } elseif ($oUser->IsLoggedIn()) {
            $bIsValidForUser = in_array($oUser->id, $aUserList);
        }

        return $bIsValidForUser;
    }
protected function checkUser ( TdbDataExtranetUser $ oUser ) { $ bIsValidForUser = false ; $ aUserList = $ this -> getPaymentMethodDataAccess ( ) -> getPermittedUserIds ( $ this -> id ) ; if ( ! is_array ( $ aUserList ) || count ( $ aUserList ) < 1 ) { $ bIsValidForUser = true ; } elseif ( $ oUser -> IsLoggedIn ( ) ) { $ bIsValidForUser = in_array ( $ oUser -> id , $ aUserList ) ; } return $ bIsValidForUser ; }
now check user id.

@param TdbDataExtranetUser $oUser

@return bool
now check user id .