source/Application/Model/Article.php
public function getLongDescription()
    {
        if ($this->_oLongDesc === null) {
            // initializing
            $this->_oLongDesc = new \OxidEsales\Eshop\Core\Field();

            // choosing which to get..
            $sOxid = $this->getId();
            $sViewName = getViewName('oxartextends', $this->getLanguage());

            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sDbValue = $oDb->getOne("select oxlongdesc from {$sViewName} where oxid = " . $oDb->quote($sOxid));

            if ($sDbValue != false) {
                $this->_oLongDesc->setValue($sDbValue, \OxidEsales\Eshop\Core\Field::T_RAW);
            } elseif ($this->oxarticles__oxparentid && $this->oxarticles__oxparentid->value) {
                if (!$this->isAdmin() || $this->_blLoadParentData) {
                    $oParent = $this->getParentArticle();
                    if ($oParent) {
                        $this->_oLongDesc->setValue($oParent->getLongDescription()->getRawValue(), \OxidEsales\Eshop\Core\Field::T_RAW);
                    }
                }
            }
        }

        return $this->_oLongDesc;
    }
public function getLongDescription()
    {
        if ($this->_oLongDesc === null) {
            // initializing
            $this->_oLongDesc = new \OxidEsales\Eshop\Core\Field();

            // choosing which to get..
            $sOxid = $this->getId();
            $sViewName = getViewName('oxartextends', $this->getLanguage());

            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            $sDbValue = $oDb->getOne("select oxlongdesc from {$sViewName} where oxid = " . $oDb->quote($sOxid));

            if ($sDbValue != false) {
                $this->_oLongDesc->setValue($sDbValue, \OxidEsales\Eshop\Core\Field::T_RAW);
            } elseif ($this->oxarticles__oxparentid && $this->oxarticles__oxparentid->value) {
                if (!$this->isAdmin() || $this->_blLoadParentData) {
                    $oParent = $this->getParentArticle();
                    if ($oParent) {
                        $this->_oLongDesc->setValue($oParent->getLongDescription()->getRawValue(), \OxidEsales\Eshop\Core\Field::T_RAW);
                    }
                }
            }
        }

        return $this->_oLongDesc;
    }
public function getLongDescription ( ) { if ( $ this -> _oLongDesc === null ) { // initializing $ this -> _oLongDesc = new \ OxidEsales \ Eshop \ Core \ Field ( ) ; // choosing which to get.. $ sOxid = $ this -> getId ( ) ; $ sViewName = getViewName ( 'oxartextends' , $ this -> getLanguage ( ) ) ; $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sDbValue = $ oDb -> getOne ( "select oxlongdesc from {$sViewName} where oxid = " . $ oDb -> quote ( $ sOxid ) ) ; if ( $ sDbValue != false ) { $ this -> _oLongDesc -> setValue ( $ sDbValue , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } elseif ( $ this -> oxarticles__oxparentid && $ this -> oxarticles__oxparentid -> value ) { if ( ! $ this -> isAdmin ( ) || $ this -> _blLoadParentData ) { $ oParent = $ this -> getParentArticle ( ) ; if ( $ oParent ) { $ this -> _oLongDesc -> setValue ( $ oParent -> getLongDescription ( ) -> getRawValue ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } } } } return $ this -> _oLongDesc ; }
Get article long description

@return object $oField field object
Get article long description