| @@ 1474-1491 (lines=18) @@ | ||
| 1471 | * |
|
| 1472 | * @return file export |
|
| 1473 | */ |
|
| 1474 | protected function _categories_export() |
|
| 1475 | { |
|
| 1476 | ||
| 1477 | // todo: I don't like doing this but it'll do until we modify EE_Export Class. |
|
| 1478 | $new_request_args = array( |
|
| 1479 | 'export' => 'report', |
|
| 1480 | 'action' => 'categories', |
|
| 1481 | 'category_ids' => $this->_req_data['VEN_CAT_ID'], |
|
| 1482 | ); |
|
| 1483 | ||
| 1484 | $this->_req_data = array_merge($this->_req_data, $new_request_args); |
|
| 1485 | ||
| 1486 | if (is_readable(EE_CLASSES . 'EE_Export.class.php')) { |
|
| 1487 | require_once(EE_CLASSES . 'EE_Export.class.php'); |
|
| 1488 | $EE_Export = EE_Export::instance($this->_req_data); |
|
| 1489 | $EE_Export->export(); |
|
| 1490 | } |
|
| 1491 | } |
|
| 1492 | ||
| 1493 | ||
| 1494 | protected function _import_categories() |
|
| @@ 766-780 (lines=15) @@ | ||
| 763 | * |
|
| 764 | * @return void |
|
| 765 | */ |
|
| 766 | protected function _categories_export() |
|
| 767 | { |
|
| 768 | // todo: I don't like doing this but it'll do until we modify EE_Export Class. |
|
| 769 | $new_request_args = array( |
|
| 770 | 'export' => 'report', |
|
| 771 | 'action' => 'categories', |
|
| 772 | 'category_ids' => $this->_req_data['EVT_CAT_ID'], |
|
| 773 | ); |
|
| 774 | $this->_req_data = array_merge($this->_req_data, $new_request_args); |
|
| 775 | if (is_readable(EE_CLASSES . 'EE_Export.class.php')) { |
|
| 776 | require_once(EE_CLASSES . 'EE_Export.class.php'); |
|
| 777 | $EE_Export = EE_Export::instance($this->_req_data); |
|
| 778 | $EE_Export->export(); |
|
| 779 | } |
|
| 780 | } |
|
| 781 | ||
| 782 | ||
| 783 | /** |
|