类 GetCategoryAttributesMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.cms.GetCategoryAttributesMethod
- 所有已实现的接口:
- freemarker.template.TemplateMethodModel,- freemarker.template.TemplateMethodModelEx,- freemarker.template.TemplateModel
getCategoryAttributes 获取多个分类扩展数据
 
参数列表
parameter list
パラメータリスト
- 多个分类id
返回结果
return result
戻り値
- map(id,- attribute:分类扩展数据(字段编码,- value))
使用示例
usage example
使用例
<#assign attributeMap=getCategoryAttributes('1,2,3,4')/<
${attributeMap['1'].title!}
<script>
$.getJSON('${site.dynamicPath}api/method/getCategoryAttributes?parameters=1,2,3,4', function(data){
console.log(data);
});
</script>
 - 
字段概要字段从类继承的字段 com.publiccms.common.base.BaseMethodlog从接口继承的字段 freemarker.template.TemplateModelNOTHING
- 
构造器概要构造器
- 
方法概要修饰符和类型方法说明intboolean从类继承的方法 com.publiccms.common.base.BaseMethodexec, execute, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
- 
字段详细资料- 
service
 
- 
- 
构造器详细资料- 
GetCategoryAttributesMethodpublic GetCategoryAttributesMethod()
 
- 
- 
方法详细资料- 
executepublic Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 指定者:
- execute在类中- BaseMethod
- 抛出:
- freemarker.template.TemplateModelException
 
- 
needAppTokenpublic boolean needAppToken()- 指定者:
- needAppToken在类中- BaseMethod
- 返回:
- whether to need app token
 
- 
minParametersNumberpublic int minParametersNumber()- 指定者:
- minParametersNumber在类中- BaseMethod
- 返回:
- min parameters number
 
 
-