blob: e893552a78c7ec9f143b82a97309fefe0f0166de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
namespace app\controllers\api;
use app\models\market\ProductCategories_model;
use app\models\Jorge;
class Doc_api
{
/** */
public static function tree($store = 904)
{
$tree = proxy(
[ProductCategories_model::class,'tree'],
[], CACHE_ROOT_TTL,
PROXY_IGNORE_CACHE
);
reply_json([ 'success' => true, 'result' => $tree ]);
die();
}
public static function dbDoc()
{
$j = new Jorge();
reply_json([
'success' => true,
'result' => $j->databaseDocumentation()
]);
die();
}
}
|