source/Application/Model/Article.php
protected function _saveArtLongDesc()
    {
        if (in_array("oxlongdesc", $this->_aSkipSaveFields)) {
            return;
        }

        if ($this->_blEmployMultilanguage) {
            $sValue = $this->getLongDescription()->getRawValue();
            if ($sValue !== null) {
                $oArtExt = oxNew(\OxidEsales\Eshop\Core\Model\MultiLanguageModel::class);
                $oArtExt->init('oxartextends');
                $oArtExt->setLanguage((int) $this->getLanguage());
                if (!$oArtExt->load($this->getId())) {
                    $oArtExt->setId($this->getId());
                }
                $oArtExt->oxartextends__oxlongdesc = new \OxidEsales\Eshop\Core\Field($sValue, \OxidEsales\Eshop\Core\Field::T_RAW);
                $oArtExt->save();
            }
        } else {
            $oArtExt = oxNew(\OxidEsales\Eshop\Core\Model\MultiLanguageModel::class);
            $oArtExt->setEnableMultilang(false);
            $oArtExt->init('oxartextends');
            $aObjFields = $oArtExt->_getAllFields(true);
            if (!$oArtExt->load($this->getId())) {
                $oArtExt->setId($this->getId());
            }

            foreach ($aObjFields as $sKey => $sValue) {
                if (preg_match('/^oxlongdesc(_(\d{1,2}))?$/', $sKey)) {
                    $sField = $this->_getFieldLongName($sKey);

                    if (isset($this->$sField)) {
                        $sLongDesc = null;
                        if ($this->$sField instanceof \OxidEsales\Eshop\Core\Field) {
                            $sLongDesc = $this->$sField->getRawValue();
                        } elseif (is_object($this->$sField)) {
                            $sLongDesc = $this->$sField->value;
                        }
                        if (isset($sLongDesc)) {
                            $sAEField = $oArtExt->_getFieldLongName($sKey);
                            $oArtExt->$sAEField = new \OxidEsales\Eshop\Core\Field($sLongDesc, \OxidEsales\Eshop\Core\Field::T_RAW);
                        }
                    }
                }
            }
            $oArtExt->save();
        }
    }
protected function _saveArtLongDesc()
    {
        if (in_array("oxlongdesc", $this->_aSkipSaveFields)) {
            return;
        }

        if ($this->_blEmployMultilanguage) {
            $sValue = $this->getLongDescription()->getRawValue();
            if ($sValue !== null) {
                $oArtExt = oxNew(\OxidEsales\Eshop\Core\Model\MultiLanguageModel::class);
                $oArtExt->init('oxartextends');
                $oArtExt->setLanguage((int) $this->getLanguage());
                if (!$oArtExt->load($this->getId())) {
                    $oArtExt->setId($this->getId());
                }
                $oArtExt->oxartextends__oxlongdesc = new \OxidEsales\Eshop\Core\Field($sValue, \OxidEsales\Eshop\Core\Field::T_RAW);
                $oArtExt->save();
            }
        } else {
            $oArtExt = oxNew(\OxidEsales\Eshop\Core\Model\MultiLanguageModel::class);
            $oArtExt->setEnableMultilang(false);
            $oArtExt->init('oxartextends');
            $aObjFields = $oArtExt->_getAllFields(true);
            if (!$oArtExt->load($this->getId())) {
                $oArtExt->setId($this->getId());
            }

            foreach ($aObjFields as $sKey => $sValue) {
                if (preg_match('/^oxlongdesc(_(\d{1,2}))?$/', $sKey)) {
                    $sField = $this->_getFieldLongName($sKey);

                    if (isset($this->$sField)) {
                        $sLongDesc = null;
                        if ($this->$sField instanceof \OxidEsales\Eshop\Core\Field) {
                            $sLongDesc = $this->$sField->getRawValue();
                        } elseif (is_object($this->$sField)) {
                            $sLongDesc = $this->$sField->value;
                        }
                        if (isset($sLongDesc)) {
                            $sAEField = $oArtExt->_getFieldLongName($sKey);
                            $oArtExt->$sAEField = new \OxidEsales\Eshop\Core\Field($sLongDesc, \OxidEsales\Eshop\Core\Field::T_RAW);
                        }
                    }
                }
            }
            $oArtExt->save();
        }
    }
protected function _saveArtLongDesc ( ) { if ( in_array ( "oxlongdesc" , $ this -> _aSkipSaveFields ) ) { return ; } if ( $ this -> _blEmployMultilanguage ) { $ sValue = $ this -> getLongDescription ( ) -> getRawValue ( ) ; if ( $ sValue !== null ) { $ oArtExt = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ MultiLanguageModel :: class ) ; $ oArtExt -> init ( 'oxartextends' ) ; $ oArtExt -> setLanguage ( ( int ) $ this -> getLanguage ( ) ) ; if ( ! $ oArtExt -> load ( $ this -> getId ( ) ) ) { $ oArtExt -> setId ( $ this -> getId ( ) ) ; } $ oArtExt -> oxartextends__oxlongdesc = new \ OxidEsales \ Eshop \ Core \ Field ( $ sValue , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; $ oArtExt -> save ( ) ; } } else { $ oArtExt = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ MultiLanguageModel :: class ) ; $ oArtExt -> setEnableMultilang ( false ) ; $ oArtExt -> init ( 'oxartextends' ) ; $ aObjFields = $ oArtExt -> _getAllFields ( true ) ; if ( ! $ oArtExt -> load ( $ this -> getId ( ) ) ) { $ oArtExt -> setId ( $ this -> getId ( ) ) ; } foreach ( $ aObjFields as $ sKey => $ sValue ) { if ( preg_match ( '/^oxlongdesc(_(\d{1,2}))?$/' , $ sKey ) ) { $ sField = $ this -> _getFieldLongName ( $ sKey ) ; if ( isset ( $ this -> $ sField ) ) { $ sLongDesc = null ; if ( $ this -> $ sField instanceof \ OxidEsales \ Eshop \ Core \ Field ) { $ sLongDesc = $ this -> $ sField -> getRawValue ( ) ; } elseif ( is_object ( $ this -> $ sField ) ) { $ sLongDesc = $ this -> $ sField -> value ; } if ( isset ( $ sLongDesc ) ) { $ sAEField = $ oArtExt -> _getFieldLongName ( $ sKey ) ; $ oArtExt -> $ sAEField = new \ OxidEsales \ Eshop \ Core \ Field ( $ sLongDesc , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } } } } $ oArtExt -> save ( ) ; } }
inserts article long description to artextends table

@return null
inserts article long description to artextends table