1 | <?php |
||
11 | class Ajax{ |
||
12 | |||
13 | /** |
||
14 | * reporting |
||
15 | * Reporting class instance. |
||
16 | * |
||
17 | * @var object |
||
18 | * @access private |
||
19 | */ |
||
20 | private $reporting; |
||
21 | |||
22 | public function hooks(){ |
||
28 | |||
29 | /** |
||
30 | * Ajax callback function for triggering the creation & deletion of test data. |
||
31 | * |
||
32 | * @see wp_ajax filter, $this->add_menu_item, $this->creation_routing |
||
33 | */ |
||
34 | public function handle_test_data_callback() { |
||
57 | |||
58 | |||
59 | /** |
||
60 | * Choose which type of creation needs to be accomplished and route through |
||
61 | * the correct class. |
||
62 | */ |
||
63 | private function creation_routing( $data ){ |
||
74 | |||
75 | |||
76 | /** |
||
77 | * Choose which type of deletion needs to be accomplished and route through |
||
78 | * the correct method of Delete. |
||
79 | */ |
||
80 | private function deletion_routing( $data ){ |
||
99 | |||
100 | |||
101 | } |
||
102 |