4 require_once
'oxerptype.php';
9 eval(
"class oxErpArticle450_parent extends $sArticleClass {};");
25 public function __set($sName, $sValue)
27 if (strpos($sName,
'oxarticles__oxlongdesc') === 0) {
28 if ($this->_blEmployMultilanguage) {
31 $this->$sName = $sValue;
44 if ($this->_blEmployMultilanguage) {
49 $oArtExt =
oxNew(
'oxi18n');
50 $oArtExt->setEnableMultilang(
false);
51 $oArtExt->init(
'oxartextends');
52 $aObjFields = $oArtExt->_getAllFields(
true);
53 if (!$oArtExt->load($this->getId())) {
54 $oArtExt->setId($this->getId());
57 foreach ($aObjFields as $sKey => $sValue) {
58 if (preg_match(
'/^oxlongdesc(_(\d{1,2}))?$/', $sKey)) {
59 $sField = $this->_getFieldLongName($sKey);
60 if (isset($this->$sField)) {
62 if ($this->$sField instanceof
oxField) {
63 $sLongDesc = $this->$sField->getRawValue();
64 } elseif (is_object($this->$sField)) {
65 $sLongDesc = $this->$sField->value;
67 if (isset($sLongDesc)) {
68 $sAEField = $oArtExt->_getFieldLongName($sKey);
82 eval(
"class oxErpArticle_parent extends $sArticleClass {};");
115 $this->_sTableName =
'oxarticles';
116 $this->_sShopObjectName =
'oxErpArticle';
130 if (!isset($aData[
'OXSTOCKFLAG'])) {
131 if (!$aData[
'OXID'] || !$oShopObject->exists( $aData[
'OXID'] )) {
133 $aData[
'OXSTOCKFLAG'] = 1;
152 $sOXID = $oShopObject->getId();
154 $oShopObject->onChange(null, $sOXID, $sOXID);