Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Modul: DWA Variant - bc * File: dwa_variant_oxarticle ..
Decoded Output download
<?php
/**
* Modul: DWA Variant - bc
* File: dwa_variant_oxarticle
* @version: $Id: dwa_variant_oxarticle.php 7739 2017-07-26 14:16:30Z bettina $
*
* Diese Datei darf nicht fr andere Projekte oder andere Domains als vereinbart, verwendet oder veruert werden.
*
* @link http://www.oxid-extensions.de/
* @copyright Die WEB-Architektin
* @author Die WEB-Architektin <[email protected]>
*/
class dwa_variant_oxarticle extends dwa_variant_oxarticle_parent {public function dwaSetExtValues(){if ($oParent = $this->_dwaParentLoadingCheck()){$this->dwaSetDeltime();if ($this->getConfig()->getConfigParam('dwa_varbc_useshortdesc')){$this->oxarticles__oxshortdesc = $oParent->oxarticles__oxshortdesc;}}}public function dwaSetDeltime(){if ($this->getConfig()->getConfigParam('dwa_varbc_usedeltime')&& (!$this->oxarticles__oxmindeltime->value || $this->oxarticles__oxmindeltime->value == '0')&& (!$this->oxarticles__oxmaxdeltime->value || $this->oxarticles__oxmaxdeltime->value == '0')&& ($oParent = $this->_dwaParentLoadingCheck())){$this->oxarticles__oxmindeltime = $oParent->oxarticles__oxmindeltime;$this->oxarticles__oxmaxdeltime = $oParent->oxarticles__oxmaxdeltime;$this->oxarticles__oxdeltimeunit = $oParent->oxarticles__oxdeltimeunit;}}public function getTPrice(){if (!($tprice = parent::getTPrice())&& $this->getConfig()->getConfigParam('dwa_varbc_useuvp')&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getTPrice();}return $tprice;}public function getDeliveryDate(){if (!($delDate = parent::getDeliveryDate())&& $this->getConfig()->getConfigParam('dwa_varbc_usedeltime')&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getDeliveryDate();}return $delDate;}public function getCategory(){if ($this->getConfig()->getConfigParam('dwa_varbc_showchildreninlist')){$sOxid = $this->getId();$sParentId = $this->oxarticles__oxparentid->value;$this->oxarticles__oxparentid->value = false;$bSet = true;}$ret = parent::getCategory();if ($bSet){$this->oxarticles__oxparentid->value = $sParentId;}return $ret;}public function isAssignedToCategory($sCatId){if ($this->getConfig()->getConfigParam('dwa_varbc_showchildreninlist')){$sOxid = $this->getId();$sParentId = $this->oxarticles__oxparentid->value;$this->oxarticles__oxparentid->value = false;$bSet = true;}$ret = parent::isAssignedToCategory($sCatId);if ($bSet){$this->oxarticles__oxparentid->value = $sParentId;}return $ret;}public function getLongDescription(){$oLongdesc = parent::getLongDescription();if ($this->getConfig()->getConfigParam('dwa_varbc_addlongdesc')&& ($oParent = $this->_dwaParentLoadingCheck())&& ($this->_oLongDesc->getRawValue()!= $oParent->getLongDescription()->getRawValue())){$this->_oLongDesc->setValue($this->_oLongDesc->getRawValue().$oParent->getLongDescription()->getRawValue(), oxField::T_RAW );}elseif (trim(strip_tags($oLongdesc->getRawValue()))== '' && $oParent = $this->_dwaParentLoadingCheck()){$this->_oLongDesc = $oParent->getLongDescription();}return $this->_oLongDesc;}public function getAccessoires(){$aAcc = parent::getAccessoires();if (!$aAcc && !$this->isAdmin()&& ($oParent = $this->_dwaParentLoadingCheck())){$aAcc = $oParent->getAccessoires();}if ($aAcc && $aAcc->count()){return $aAcc;}return null;}public function getCrossSelling(){$aCross = parent::getCrossSelling();if (!$aCross && !$this->isAdmin()&& ($oParent = $this->_dwaParentLoadingCheck())){$aCross = $oParent->getCrossSelling();}if ($aCross && $aCross->count()){return $aCross;}return null;}public function getSize(){if (!is_callable(array(parent, 'getSize'))){return;}if (!($dSize = parent::getSize())&& $this->getConfig()->getConfigParam('dwa_varbc_usesize')&& ($oParent = $this->_dwaParentLoadingCheck())){$dSize = $oParent->getSize();}return $dSize;}public function getUnitQuantity(){if (!is_callable(array(parent, 'getUnitQuantity'))){return;}if (!($quantUnit = parent::getUnitQuantity())&& $this->getConfig()->getConfigParam('dwa_varbc_useunit')&& ($oParent = $this->_dwaParentLoadingCheck())){$quantUnit = $oParent->getUnitQuantity();}return $quantUnit;}public function getWeight(){if (!is_callable(array(parent, 'getWeight'))){return;}if (!($weight = parent::getWeight())&& $this->getConfig()->getConfigParam('dwa_varbc_useweight')&& ($oParent = $this->_dwaParentLoadingCheck())){$weight = $oParent->getWeight();}return $weight;}public function getUnitName(){if (!($unitName = parent::getUnitName())&& $this->getConfig()->getConfigParam('dwa_varbc_useunit')&& ($oParent = $this->_dwaParentLoadingCheck())){$unitName = $oParent->getUnitName();}return $unitName;}public function getVendorId($blForceReload = false ){if (!($sVendorId = parent::getVendorId($blForceReload))&& $this->getConfig()->getConfigParam('dwa_varbc_usevendor')&& ($oParent = $this->_dwaParentLoadingCheck())){$sVendorId = $oParent->getVendorId();}return $sVendorId;}public function getMediaUrls(){parent::getMediaUrls();if ($this->getConfig()->getConfigParam('dwa_varbc_usemediaurls')&& !$this->_aMediaUrls->count()&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getMediaUrls();}return $this->_aMediaUrls;}protected function _dwaParentLoadingCheck(){if (($oParent = $this->getParentArticle())&& !$this->isAdmin()){return $oParent;}return false;}public function getBasketPrice($dAmount, $aSelList, $oBasket){if (($oParent = $this->getParentArticle())&& $oParent->oxarticles__dwa_varbcstaffel->value == 1){if (!$oBasket){$oBasket = $this->getSession()->getBasket();}if ($oBasket){$dAmount = 0;foreach ($oBasket->getContents()as $item){if ($item->getArticle()->getParentId()== $oParent->getId()){$dAmount += $item->getAmount();}}}}return parent::getBasketPrice($dAmount, $aSelList, $oBasket);}} ?>
Did this file decode correctly?
Original Code
<?php
/**
* Modul: DWA Variant - bc
* File: dwa_variant_oxarticle
* @version: $Id: dwa_variant_oxarticle.php 7739 2017-07-26 14:16:30Z bettina $
*
* Diese Datei darf nicht fr andere Projekte oder andere Domains als vereinbart, verwendet oder veruert werden.
*
* @link http://www.oxid-extensions.de/
* @copyright Die WEB-Architektin
* @author Die WEB-Architektin <[email protected]>
*/
class dwa_variant_oxarticle extends dwa_variant_oxarticle_parent {public function dwaSetExtValues(){if ($oParent = $this->_dwaParentLoadingCheck()){$this->dwaSetDeltime();if ($this->getConfig()->getConfigParam('dwa_varbc_useshortdesc')){$this->oxarticles__oxshortdesc = $oParent->oxarticles__oxshortdesc;}}}public function dwaSetDeltime(){if ($this->getConfig()->getConfigParam('dwa_varbc_usedeltime')&& (!$this->oxarticles__oxmindeltime->value || $this->oxarticles__oxmindeltime->value == '0')&& (!$this->oxarticles__oxmaxdeltime->value || $this->oxarticles__oxmaxdeltime->value == '0')&& ($oParent = $this->_dwaParentLoadingCheck())){$this->oxarticles__oxmindeltime = $oParent->oxarticles__oxmindeltime;$this->oxarticles__oxmaxdeltime = $oParent->oxarticles__oxmaxdeltime;$this->oxarticles__oxdeltimeunit = $oParent->oxarticles__oxdeltimeunit;}}public function getTPrice(){if (!($tprice = parent::getTPrice())&& $this->getConfig()->getConfigParam('dwa_varbc_useuvp')&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getTPrice();}return $tprice;}public function getDeliveryDate(){if (!($delDate = parent::getDeliveryDate())&& $this->getConfig()->getConfigParam('dwa_varbc_usedeltime')&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getDeliveryDate();}return $delDate;}public function getCategory(){if ($this->getConfig()->getConfigParam('dwa_varbc_showchildreninlist')){$sOxid = $this->getId();$sParentId = $this->oxarticles__oxparentid->value;$this->oxarticles__oxparentid->value = false;$bSet = true;}$ret = parent::getCategory();if ($bSet){$this->oxarticles__oxparentid->value = $sParentId;}return $ret;}public function isAssignedToCategory($sCatId){if ($this->getConfig()->getConfigParam('dwa_varbc_showchildreninlist')){$sOxid = $this->getId();$sParentId = $this->oxarticles__oxparentid->value;$this->oxarticles__oxparentid->value = false;$bSet = true;}$ret = parent::isAssignedToCategory($sCatId);if ($bSet){$this->oxarticles__oxparentid->value = $sParentId;}return $ret;}public function getLongDescription(){$oLongdesc = parent::getLongDescription();if ($this->getConfig()->getConfigParam('dwa_varbc_addlongdesc')&& ($oParent = $this->_dwaParentLoadingCheck())&& ($this->_oLongDesc->getRawValue()!= $oParent->getLongDescription()->getRawValue())){$this->_oLongDesc->setValue($this->_oLongDesc->getRawValue().$oParent->getLongDescription()->getRawValue(), oxField::T_RAW );}elseif (trim(strip_tags($oLongdesc->getRawValue()))== '' && $oParent = $this->_dwaParentLoadingCheck()){$this->_oLongDesc = $oParent->getLongDescription();}return $this->_oLongDesc;}public function getAccessoires(){$aAcc = parent::getAccessoires();if (!$aAcc && !$this->isAdmin()&& ($oParent = $this->_dwaParentLoadingCheck())){$aAcc = $oParent->getAccessoires();}if ($aAcc && $aAcc->count()){return $aAcc;}return null;}public function getCrossSelling(){$aCross = parent::getCrossSelling();if (!$aCross && !$this->isAdmin()&& ($oParent = $this->_dwaParentLoadingCheck())){$aCross = $oParent->getCrossSelling();}if ($aCross && $aCross->count()){return $aCross;}return null;}public function getSize(){if (!is_callable(array(parent, 'getSize'))){return;}if (!($dSize = parent::getSize())&& $this->getConfig()->getConfigParam('dwa_varbc_usesize')&& ($oParent = $this->_dwaParentLoadingCheck())){$dSize = $oParent->getSize();}return $dSize;}public function getUnitQuantity(){if (!is_callable(array(parent, 'getUnitQuantity'))){return;}if (!($quantUnit = parent::getUnitQuantity())&& $this->getConfig()->getConfigParam('dwa_varbc_useunit')&& ($oParent = $this->_dwaParentLoadingCheck())){$quantUnit = $oParent->getUnitQuantity();}return $quantUnit;}public function getWeight(){if (!is_callable(array(parent, 'getWeight'))){return;}if (!($weight = parent::getWeight())&& $this->getConfig()->getConfigParam('dwa_varbc_useweight')&& ($oParent = $this->_dwaParentLoadingCheck())){$weight = $oParent->getWeight();}return $weight;}public function getUnitName(){if (!($unitName = parent::getUnitName())&& $this->getConfig()->getConfigParam('dwa_varbc_useunit')&& ($oParent = $this->_dwaParentLoadingCheck())){$unitName = $oParent->getUnitName();}return $unitName;}public function getVendorId($blForceReload = false ){if (!($sVendorId = parent::getVendorId($blForceReload))&& $this->getConfig()->getConfigParam('dwa_varbc_usevendor')&& ($oParent = $this->_dwaParentLoadingCheck())){$sVendorId = $oParent->getVendorId();}return $sVendorId;}public function getMediaUrls(){parent::getMediaUrls();if ($this->getConfig()->getConfigParam('dwa_varbc_usemediaurls')&& !$this->_aMediaUrls->count()&& ($oParent = $this->_dwaParentLoadingCheck())){return $oParent->getMediaUrls();}return $this->_aMediaUrls;}protected function _dwaParentLoadingCheck(){if (($oParent = $this->getParentArticle())&& !$this->isAdmin()){return $oParent;}return false;}public function getBasketPrice($dAmount, $aSelList, $oBasket){if (($oParent = $this->getParentArticle())&& $oParent->oxarticles__dwa_varbcstaffel->value == 1){if (!$oBasket){$oBasket = $this->getSession()->getBasket();}if ($oBasket){$dAmount = 0;foreach ($oBasket->getContents()as $item){if ($item->getArticle()->getParentId()== $oParent->getId()){$dAmount += $item->getAmount();}}}}return parent::getBasketPrice($dAmount, $aSelList, $oBasket);}}
Function Calls
None |
Stats
MD5 | 2480b158784a992ac43fe9ee82e90daa |
Eval Count | 0 |
Decode Time | 136 ms |