\PhalApi\HelperApiStaticCreate

ApiList - 在线接口列表文档 - 辅助类

Summary

Methods
Properties
Constants
__construct()
render()
makeApiServiceLink()
getUri()
makeThemeButton()
assign()
getTplData()
No public properties found
API_CATE_TYPE_API_CLASS_NAME
API_CATE_TYPE_API_CLASS_TITLE
API_LIST_SORT_BY_API_NAME
API_LIST_SORT_BY_API_TITLE
No protected methods found
$apiCateType
$apiListSortBy
$projectName
$tplData
$webRoot
$theme
$detailTplPath
N/A
No private methods found
No private properties found
N/A

Constants

API_CATE_TYPE_API_CLASS_NAME

API_CATE_TYPE_API_CLASS_NAME

API_CATE_TYPE_API_CLASS_TITLE

API_CATE_TYPE_API_CLASS_TITLE

API_LIST_SORT_BY_API_NAME

API_LIST_SORT_BY_API_NAME

API_LIST_SORT_BY_API_TITLE

API_LIST_SORT_BY_API_TITLE

Properties

$apiCateType

$apiCateType : integer

Type

integer — 接口分类的方式

$apiListSortBy

$apiListSortBy : integer

Type

integer — 接口列表的排序方式

$projectName

$projectName : 

Type

$tplData

$tplData : 

Type

$webRoot

$webRoot : 

Type

$theme

$theme : 

Type

$detailTplPath

$detailTplPath : 

Type

Methods

__construct()

__construct(  $projectName,   $theme = 'expand',   $detailTplPath = NULL,   $apiCateType = NULL,   $apiListSortBy = NULL) 

Parameters

$projectName
$theme
$detailTplPath
$apiCateType
$apiListSortBy

render()

render(string  $tplPath = NULL) 

Parameters

string $tplPath

模板绝对路径

makeApiServiceLink()

makeApiServiceLink(  $service,   $theme = '') 

Parameters

$service
$theme

getUri()

getUri() 

makeThemeButton()

makeThemeButton(  $theme) 

Parameters

$theme

assign()

assign(  $name,   $value) 

赋值模板变量

Parameters

$name
$value

getTplData()

getTplData() 

获取模板变量