@@ 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() |
@@ 862-876 (lines=15) @@ | ||
859 | * |
|
860 | * @return void |
|
861 | */ |
|
862 | protected function _categories_export() |
|
863 | { |
|
864 | // todo: I don't like doing this but it'll do until we modify EE_Export Class. |
|
865 | $new_request_args = array( |
|
866 | 'export' => 'report', |
|
867 | 'action' => 'categories', |
|
868 | 'category_ids' => $this->_req_data['EVT_CAT_ID'], |
|
869 | ); |
|
870 | $this->_req_data = array_merge($this->_req_data, $new_request_args); |
|
871 | if (is_readable(EE_CLASSES . 'EE_Export.class.php')) { |
|
872 | require_once(EE_CLASSES . 'EE_Export.class.php'); |
|
873 | $EE_Export = EE_Export::instance($this->_req_data); |
|
874 | $EE_Export->export(); |
|
875 | } |
|
876 | } |
|
877 | ||
878 | ||
879 | /** |