| @@ 836-840 (lines=5) @@ | ||
| 833 | public function cloneAttribute(Oledrion_attributes $originalAttribute) |
|
| 834 | { |
|
| 835 | $newAttribute =& $originalAttribute->xoopsClone(); |
|
| 836 | if (OLEDRION_DUPLICATED_PLACE === 'right') { |
|
| 837 | $newAttribute->setVar('attribute_title', $originalAttribute->getVar('attribute_title') . ' ' . _AM_OLEDRION_DUPLICATED); |
|
| 838 | } else { |
|
| 839 | $newAttribute->setVar('attribute_title', _AM_OLEDRION_DUPLICATED . ' ' . $originalAttribute->getVar('attribute_title')); |
|
| 840 | } |
|
| 841 | $newAttribute->setVar('attribute_id', 0); |
|
| 842 | $newAttribute->setNew(); |
|
| 843 | ||
| @@ 293-297 (lines=5) @@ | ||
| 290 | $item = $h_oledrion_discounts->get($id); |
|
| 291 | if (is_object($item)) { |
|
| 292 | $newDiscount = $item->xoopsClone(); |
|
| 293 | if (OLEDRION_DUPLICATED_PLACE === 'right') { |
|
| 294 | $newDiscount->setVar('disc_title', xoops_trim($item->getVar('disc_title')) . ' ' . _AM_OLEDRION_DUPLICATED); |
|
| 295 | } else { |
|
| 296 | $newDiscount->setVar('disc_title', _AM_OLEDRION_DUPLICATED . ' ' . xoops_trim($item->getVar('disc_title'))); |
|
| 297 | } |
|
| 298 | $newDiscount->setVar('disc_id', 0); |
|
| 299 | $newDiscount->setNew(); |
|
| 300 | $res = $h_oledrion_discounts->insert($newDiscount, true); |
|
| @@ 1243-1247 (lines=5) @@ | ||
| 1240 | { |
|
| 1241 | global $h_oledrion_productsmanu, $h_oledrion_files, $h_oledrion_productsmanu, $h_oledrion_related, $oledrionHandlers; |
|
| 1242 | $newProduct =& $originalProduct->xoopsClone(); |
|
| 1243 | if (OLEDRION_DUPLICATED_PLACE === 'right') { |
|
| 1244 | $newProduct->setVar('product_title', $originalProduct->getVar('product_title') . ' ' . _AM_OLEDRION_DUPLICATED); |
|
| 1245 | } else { |
|
| 1246 | $newProduct->setVar('product_title', _AM_OLEDRION_DUPLICATED . ' ' . $originalProduct->getVar('product_title')); |
|
| 1247 | } |
|
| 1248 | $newProduct->setVar('product_id', 0); |
|
| 1249 | $newProduct->setNew(); |
|
| 1250 | ||