@@ 282-286 (lines=5) @@ | ||
279 | $item = $h_oledrion_discounts->get($id); |
|
280 | if (is_object($item)) { |
|
281 | $newDiscount = $item->xoopsClone(); |
|
282 | if (OLEDRION_DUPLICATED_PLACE === 'right') { |
|
283 | $newDiscount->setVar('disc_title', xoops_trim($item->getVar('disc_title')) . ' ' . _AM_OLEDRION_DUPLICATED); |
|
284 | } else { |
|
285 | $newDiscount->setVar('disc_title', _AM_OLEDRION_DUPLICATED . ' ' . xoops_trim($item->getVar('disc_title'))); |
|
286 | } |
|
287 | $newDiscount->setVar('disc_id', 0); |
|
288 | $newDiscount->setNew(); |
|
289 | $res = $h_oledrion_discounts->insert($newDiscount, true); |
@@ 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 |
@@ 1233-1237 (lines=5) @@ | ||
1230 | { |
|
1231 | global $h_oledrion_productsmanu, $h_oledrion_files, $h_oledrion_productsmanu, $h_oledrion_related, $oledrionHandlers; |
|
1232 | $newProduct =& $originalProduct->xoopsClone(); |
|
1233 | if (OLEDRION_DUPLICATED_PLACE === 'right') { |
|
1234 | $newProduct->setVar('product_title', $originalProduct->getVar('product_title') . ' ' . _AM_OLEDRION_DUPLICATED); |
|
1235 | } else { |
|
1236 | $newProduct->setVar('product_title', _AM_OLEDRION_DUPLICATED . ' ' . $originalProduct->getVar('product_title')); |
|
1237 | } |
|
1238 | $newProduct->setVar('product_id', 0); |
|
1239 | $newProduct->setNew(); |
|
1240 |