| @@ 1378-1395 (lines=18) @@ | ||
| 1375 | * TODO handle category exports() | |
| 1376 | * @return file export | |
| 1377 | */ | |
| 1378 | 	protected function _categories_export() { | |
| 1379 | ||
| 1380 | //todo: I don't like doing this but it'll do until we modify EE_Export Class. | |
| 1381 | $new_request_args = array( | |
| 1382 | 'export' => 'report', | |
| 1383 | 'action' => 'categories', | |
| 1384 | 'category_ids' => $this->_req_data['VEN_CAT_ID'] | |
| 1385 | ); | |
| 1386 | ||
| 1387 | $this->_req_data = array_merge( $this->_req_data, $new_request_args ); | |
| 1388 | ||
| 1389 | 		if ( is_readable( EE_CLASSES . 'EE_Export.class.php') ) { | |
| 1390 | require_once( EE_CLASSES . 'EE_Export.class.php'); | |
| 1391 | $EE_Export = EE_Export::instance( $this->_req_data ); | |
| 1392 | $EE_Export->export(); | |
| 1393 | } | |
| 1394 | ||
| 1395 | } | |
| 1396 | ||
| 1397 | ||
| 1398 | ||
| @@ 668-685 (lines=18) @@ | ||
| 665 | * handle category exports() | |
| 666 | * @return file export | |
| 667 | */ | |
| 668 | 	protected function _categories_export() { | |
| 669 | ||
| 670 | //todo: I don't like doing this but it'll do until we modify EE_Export Class. | |
| 671 | $new_request_args = array( | |
| 672 | 'export' => 'report', | |
| 673 | 'action' => 'categories', | |
| 674 | 'category_ids' => $this->_req_data['EVT_CAT_ID'] | |
| 675 | ); | |
| 676 | ||
| 677 | $this->_req_data = array_merge( $this->_req_data, $new_request_args ); | |
| 678 | ||
| 679 | 		if ( is_readable( EE_CLASSES . 'EE_Export.class.php') ) { | |
| 680 | require_once( EE_CLASSES . 'EE_Export.class.php'); | |
| 681 | $EE_Export = EE_Export::instance( $this->_req_data ); | |
| 682 | $EE_Export->export(); | |
| 683 | } | |
| 684 | ||
| 685 | } | |
| 686 | ||
| 687 | ||
| 688 | ||