См. определение в файле vkcategories.php строка 16
◆ __construct()
__construct |
( |
int | $exportId | ) |
|
VkCategories constructor.
- Аргументы
-
$exportId | - int, ID of export profile |
См. определение в файле vkcategories.php строка 27
◆ createAgent()
Create agent for pereodical update vk-categories in values (main function)
- Возвращает
- array|bool|false|mixed|null - ID of created or existing agent
См. определение в файле vkcategories.php строка 38
◆ deleteAgent()
- Аргументы
-
$exportid | Remove agent for current export ID |
См. определение в файле vkcategories.php строка 91
◆ deleteAllAgents()
◆ getList()
getList |
( |
| $isTree = true | ) |
|
If cache exist - get values from it. Else - download categories via API
- Аргументы
-
- Возвращает
- array|bool
См. определение в файле vkcategories.php строка 149
◆ getVkCategorySelector()
getVkCategorySelector |
( |
| $catVkSelected = NULL, |
|
|
| $defaultItemText = '' ) |
Formmatted selector to HTML. Not create <select> tag. only inner options.
- Аргументы
-
null | $catVkSelected | - ID of item, which it is necessary to ckecked |
string | $defaultItemText | - if set - rename first element. Default - 'Check category' |
- Возвращает
- string
См. определение в файле vkcategories.php строка 274
◆ updateVkCategoriesAgent()
static updateVkCategoriesAgent |
( |
int | $exportId | ) |
|
|
static |
Agent wrap-method for update cache
- Аргументы
-
- Возвращает
- string
См. определение в файле vkcategories.php строка 306
◆ CACHE_DIR
const CACHE_DIR = '/sale/vkexport/' |
◆ CACHE_ID_PREFIX
const CACHE_ID_PREFIX = "vkcategory_cache" |
◆ CACHE_TTL