4 require_once
'oxerptype.php';
9 eval(
"class oxErpArticle450_parent extends $sArticleClass {};");
28 public function __set($sName, $sValue)
30 if (strpos($sName,
'oxarticles__oxlongdesc') === 0) {
31 if ($this->_blEmployMultilanguage) {
34 $this->$sName = $sValue;
47 if ($this->_blEmployMultilanguage) {
52 $oArtExt =
oxNew(
'oxi18n');
53 $oArtExt->setEnableMultilang(
false);
54 $oArtExt->init(
'oxartextends');
55 $aObjFields = $oArtExt->_getAllFields(
true);
56 if (!$oArtExt->load($this->getId())) {
57 $oArtExt->setId($this->getId());
60 foreach ($aObjFields as $sKey => $sValue) {
61 if (preg_match(
'/^oxlongdesc(_(\d{1,2}))?$/', $sKey)) {
62 $sField = $this->_getFieldLongName($sKey);
63 if (isset($this->$sField)) {
65 if ($this->$sField instanceof
oxField) {
66 $sLongDesc = $this->$sField->getRawValue();
67 } elseif (is_object($this->$sField)) {
68 $sLongDesc = $this->$sField->value;
70 if (isset($sLongDesc)) {
71 $sAEField = $oArtExt->_getFieldLongName($sKey);
84 eval(
"class oxErpArticle_parent extends $sArticleClass {};");
118 $this->_sTableName =
'oxarticles';
119 $this->_sShopObjectName =
'oxErpArticle';
133 if (!isset($aData[
'OXSTOCKFLAG'])) {
134 if (!$aData[
'OXID'] || !$oShopObject->exists($aData[
'OXID'])) {
136 $aData[
'OXSTOCKFLAG'] = 1;
155 $sOXID = $oShopObject->getId();
157 $oShopObject->onChange(null, $sOXID, $sOXID);