2017-01-16 22:21:11 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: user
|
|
|
|
* Date: 1/16/17
|
|
|
|
* Time: 10:12 PM
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Controllers\Category;
|
|
|
|
|
|
|
|
use BusinessLogic\Category\CategoryRetriever;
|
|
|
|
|
|
|
|
class CategoryController {
|
2017-01-18 21:56:12 -05:00
|
|
|
function get($i) {
|
|
|
|
print json_encode(intval($i));
|
|
|
|
}
|
|
|
|
|
2017-01-16 22:21:11 -05:00
|
|
|
static function getAllCategories($hesk_settings) {
|
|
|
|
require_once(__DIR__ . '/../businesslogic/category/CategoryRetriever.php');
|
|
|
|
|
2017-01-17 21:58:57 -05:00
|
|
|
return CategoryRetriever::get_all_categories($hesk_settings);
|
2017-01-16 22:21:11 -05:00
|
|
|
}
|
|
|
|
}
|