Skip to content

PluginHelper

App\Helpers\PluginHelper

Get Plugin Host

php
PluginHelper::fresnsPluginHostByFskey($fskey);
Parameter NameTypeRequiredDescription
fskeyStringrequiredPlugin fskey

Get Plugin URL

php
PluginHelper::fresnsPluginUrlByFskey($fskey);
Parameter NameTypeRequiredDescription
fskeyStringrequiredPlugin fskey

Get Plugin URL with Replaced Custom Parameter

php
PluginHelper::fresnsPluginUsageUrl($fskey, $pluginUseId);
Parameter NameTypeRequiredDescription
fskeyStringrequiredPlugin fskey
pluginUseIdNumberrequiredapp_usages->id

The plugin address {parameter} variable has been replaced with the app_usages->parameter field value.

Get Plugin Version

php
PluginHelper::fresnsPluginVersionByFskey($fskey);
Parameter NameTypeRequiredDescription
fskeyStringrequiredPlugin fskey

Get Plugin Upgrade Code

php
PluginHelper::fresnsPluginUpgradeCodeByFskey($fskey);
Parameter NameTypeRequiredDescription
fskeyStringrequiredPlugin fskey

Released under the Apache-2.0 License