| @@ 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() |
|
| @@ 796-810 (lines=15) @@ | ||
| 793 | * |
|
| 794 | * @return void |
|
| 795 | */ |
|
| 796 | protected function _categories_export() |
|
| 797 | { |
|
| 798 | // todo: I don't like doing this but it'll do until we modify EE_Export Class. |
|
| 799 | $new_request_args = array( |
|
| 800 | 'export' => 'report', |
|
| 801 | 'action' => 'categories', |
|
| 802 | 'category_ids' => $this->_req_data['EVT_CAT_ID'], |
|
| 803 | ); |
|
| 804 | $this->_req_data = array_merge($this->_req_data, $new_request_args); |
|
| 805 | if (is_readable(EE_CLASSES . 'EE_Export.class.php')) { |
|
| 806 | require_once(EE_CLASSES . 'EE_Export.class.php'); |
|
| 807 | $EE_Export = EE_Export::instance($this->_req_data); |
|
| 808 | $EE_Export->export(); |
|
| 809 | } |
|
| 810 | } |
|
| 811 | ||
| 812 | ||
| 813 | /** |
|