/ Markus Gärtner * @copyright (C) 2011, D3 Data Development * @see http://www.shopmodule.com * $Rev:: $: * $Author:: $: * $Date:: $: */ namespace D3\Points\Modules\Core; use OxidEsales\Eshop\Core\Theme; use D3\Points\Application\Model\d3points; /** * Class d3_oxviewconfig_points * * @package D3\Points\Modules\Application\Core */ class d3_oxviewconfig_points extends d3_oxviewconfig_points_parent { /** * Gibt die Summe der aktuellen Bonuspunkte zurück * * @return int * @throws \Doctrine\DBAL\DBALException * @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException * @throws \OxidEsales\Eshop\Core\Exception\DatabaseErrorException */ public function d3getPointsTotalSum() { $oUser = $this->getUser(); if (!$oUser) { return 0; } /* @var $oD3UserPoints d3points */ $oD3UserPoints = oxNew(d3points::class); return $oD3UserPoints->d3GetTotalSumPoints($oUser->getId()); } /** * @return mixed * @throws \OxidEsales\Eshop\Core\Exception\SystemComponentException */ public function d3GetParentThemeId() { /** @var d3_oxtheme_modcfg $oTheme */ $oTheme = oxNew(Theme::class); return $oTheme->d3GetParentThemeId(); } }