Model/User.php
public function getUserGroups($oxId = null)
    {
        if (!$this->isCallBackUserPayPalUser()) {
            return parent::getUserGroups();
        }

        if (!$this->_oGroups) {
            /** @var \OxidEsales\Eshop\Core\TableViewNameGenerator $viewNameGenerator */
            $viewNameGenerator = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Core\TableViewNameGenerator::class);
            $viewName = $viewNameGenerator->getViewName("oxgroups");
            $select = "select {$viewName}.* from {$viewName} where ({$viewName}.oxid = 'oxidnotyetordered' OR {$viewName}.oxid = 'oxidnewcustomer')";
            $this->_oGroups = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class, \OxidEsales\Eshop\Application\Model\Groups::class);
            $this->_oGroups->selectString($select);
        }

        return $this->_oGroups;
    }
public function getUserGroups($oxId = null)
    {
        if (!$this->isCallBackUserPayPalUser()) {
            return parent::getUserGroups();
        }

        if (!$this->_oGroups) {
            /** @var \OxidEsales\Eshop\Core\TableViewNameGenerator $viewNameGenerator */
            $viewNameGenerator = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Core\TableViewNameGenerator::class);
            $viewName = $viewNameGenerator->getViewName("oxgroups");
            $select = "select {$viewName}.* from {$viewName} where ({$viewName}.oxid = 'oxidnotyetordered' OR {$viewName}.oxid = 'oxidnewcustomer')";
            $this->_oGroups = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class, \OxidEsales\Eshop\Application\Model\Groups::class);
            $this->_oGroups->selectString($select);
        }

        return $this->_oGroups;
    }
public function getUserGroups ( $ oxId = null ) { if ( ! $ this -> isCallBackUserPayPalUser ( ) ) { return parent :: getUserGroups ( ) ; } if ( ! $ this -> _oGroups ) { /** @var \OxidEsales\Eshop\Core\TableViewNameGenerator $viewNameGenerator */ $ viewNameGenerator = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Core \ TableViewNameGenerator :: class ) ; $ viewName = $ viewNameGenerator -> getViewName ( "oxgroups" ) ; $ select = "select {$viewName}.* from {$viewName} where ({$viewName}.oxid = 'oxidnotyetordered' OR {$viewName}.oxid = 'oxidnewcustomer')" ; $ this -> _oGroups = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class , \ OxidEsales \ Eshop \ Application \ Model \ Groups :: class ) ; $ this -> _oGroups -> selectString ( $ select ) ; } return $ this -> _oGroups ; }
Returns user group list.

@param string $oxId oxId identifier.

@return \OxidEsales\Eshop\Core\Model\ListModel
Returns user group list .