Skip to content

ExtendUtility

App\Utilities\ExtendUtility

Get Plugin Extension

php
ExtendUtility::getPluginExtends($type, $groupId, $scene, $userId, $langTag);
Parameter NameTypeRequiredDescription
typeNumberrequiredUsage type number
groupIdNumberoptionaltype=5 Determine if the user is a group administrator
type=6 Get the specified group's extension
sceneNumberoptionalUsage scene number
userIdNumberoptionalWhen there is no permission requirement, both passing and not passing can get the extension
If the extension has permission requirements, judge whether it has the right based on the passed parameter
langTagStringoptionalIf empty, the default language is used.

Get Data Extension

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

Get Icon Extension

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

Get Copywriting Extension

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

Get Content Extension

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

Released under the Apache-2.0 License