类 GetLangPathMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.GetLangPathMethod
- 所有已实现的接口:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel
getLangPath 获取站点多语言地址
参数列表
lang,语言
返回结果
lang path:站点多语言地址
使用示例
${getLangPath('cn')}
<script>
fetch('${site.dynamicPath}api/method/getLangPath?parameters=cn').then(res => res.json()).then(data=>{
console.log(data);
});
</script>
-
字段概要
字段从类继承的字段 com.publiccms.common.base.BaseMethod
log从接口继承的字段 freemarker.template.TemplateModel
NOTHING -
构造器概要
构造器 -
方法概要
从类继承的方法 com.publiccms.common.base.BaseMethod
exec, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
-
字段详细资料
-
fileUploadComponent
-
siteAttributeComponent
-
-
构造器详细资料
-
GetLangPathMethod
public GetLangPathMethod()
-
-
方法详细资料
-
execute
public Object execute(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 覆盖:
execute在类中BaseMethod- 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 指定者:
execute在类中BaseMethod- 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(SysSite site, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 抛出:
freemarker.template.TemplateModelException
-
needAppToken
public boolean needAppToken()- 指定者:
needAppToken在类中BaseMethod- 返回:
- whether to need app token
-
minParametersNumber
public int minParametersNumber()- 指定者:
minParametersNumber在类中BaseMethod- 返回:
- min parameters number
-