source/Core/GenericImport/ImportObject/OrderArticle.php
protected function preAssignObject($shopObject, $data, $allowCustomShopId)
    {
        $data = parent::preAssignObject($shopObject, $data, $allowCustomShopId);

        // check if data is not serialized
        $persParamValues = @unserialize($data['OXPERSPARAM']);
        if (!is_array($persParamValues)) {
            // data is a string with | separation, prepare for oxid
            $persParamValues = explode("|", $data['OXPERSPARAM']);
            $data['OXPERSPARAM'] = serialize($persParamValues);
        }
        if (array_key_exists('OXORDERSHOPID', $data)) {
            $data['OXORDERSHOPID'] = $this->getOrderShopId($data['OXORDERSHOPID']);
        }

        return $data;
    }
protected function preAssignObject($shopObject, $data, $allowCustomShopId)
    {
        $data = parent::preAssignObject($shopObject, $data, $allowCustomShopId);

        // check if data is not serialized
        $persParamValues = @unserialize($data['OXPERSPARAM']);
        if (!is_array($persParamValues)) {
            // data is a string with | separation, prepare for oxid
            $persParamValues = explode("|", $data['OXPERSPARAM']);
            $data['OXPERSPARAM'] = serialize($persParamValues);
        }
        if (array_key_exists('OXORDERSHOPID', $data)) {
            $data['OXORDERSHOPID'] = $this->getOrderShopId($data['OXORDERSHOPID']);
        }

        return $data;
    }
protected function preAssignObject ( $ shopObject , $ data , $ allowCustomShopId ) { $ data = parent :: preAssignObject ( $ shopObject , $ data , $ allowCustomShopId ) ; // check if data is not serialized $ persParamValues = @ unserialize ( $ data [ 'OXPERSPARAM' ] ) ; if ( ! is_array ( $ persParamValues ) ) { // data is a string with | separation, prepare for oxid $ persParamValues = explode ( "|" , $ data [ 'OXPERSPARAM' ] ) ; $ data [ 'OXPERSPARAM' ] = serialize ( $ persParamValues ) ; } if ( array_key_exists ( 'OXORDERSHOPID' , $ data ) ) { $ data [ 'OXORDERSHOPID' ] = $ this -> getOrderShopId ( $ data [ 'OXORDERSHOPID' ] ) ; } return $ data ; }
issued before saving an object. can modify aData for saving

@param \OxidEsales\Eshop\Core\Model\BaseModel $shopObject        oxBase child for object
@param array                                  $data              Data for object
@param bool                                   $allowCustomShopId If true then AllowCustomShopId

@return array
issued before saving an object . can modify aData for saving