PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / src / App / Controller / CategoriesController.php
wp-all-export / src / App / Controller Last commit date
CategoriesController.php 8 years ago ExportController.php 3 weeks ago GoogleCategoriesController.php 3 weeks ago SchedulingConnectionController.php 8 years ago SchedulingLicenseController.php 3 weeks ago
CategoriesController.php
24 lines
1 <?php
2
3 namespace Wpae\App\Controller;
4
5 use Wpae\App\Service\CategoriesService;
6 use Wpae\Controller\BaseController;
7 use Wpae\Http\JsonResponse;
8 use Wpae\Http\Request;
9
10 class CategoriesController extends BaseController
11 {
12 public function indexAction(Request $request)
13 {
14 $categoriesService = new CategoriesService();
15
16 $categories = array(
17 'id' => 0,
18 'title' => 'Root',
19 'children' => $categoriesService->getTaxonomyHierarchy(0)
20 );
21
22 return new JsonResponse($categories);
23 }
24 }