Skip to content
On this page

ExtendUtility

App\Utilities\ExtendUtility

获取插件扩展

php
ExtendUtility::getPluginExtends($type, $groupId, $scene, $userId, $langTag);
Parameter NameTypeRequiredDescription
typeNumberrequired使用类型编号
groupIdNumberoptionaltype=5 判断用户是否为小组管理员
type=6 获取指定小组的扩展
sceneNumberoptional使用场景编号
userIdNumberoptional没有权限要求时,传与不传都可获得扩展
如果扩展有权限要求,则根据传参判断是否有权
langTagStringoptionalIf empty, the default language is used.

获取数据扩展

php
ExtendUtility::getDataExtend($contentType, $dataType);

获取图标扩展

php
ExtendUtility::getIcons($type, $id, $langTag);

获取文案扩展

php
ExtendUtility::getTips($type, $id, $langTag);

获取内容扩展

php
ExtendUtility::getExtends($type, $id, $langTag);

Released under the Apache-2.0 License