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