PHP 클래스 Mpociot\ApiDoc\Generators\AbstractGenerator

파일 보기 프로젝트 열기: mpociot/laravel-apidoc-generator 1 사용 예제들

공개 메소드들

메소드 설명
callRoute ( string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string $content = null ) : Illuminate\Http\Response Call the given URI and return the Response.
prepareMiddleware ( boolean $disable = false ) : void Prepares / Disables route middlewares.
processRoute ( Illuminate\Routing\Route $route, array $bindings = [], boolean $withResponse = true ) : array

보호된 메소드들

메소드 설명
addRouteModelBindings ( $route, array $bindings ) : mixed
fancyImplode ( array $arr, string $first, string $last ) : string
getParameters ( array $routeData, array $routeAction, array $bindings ) : mixed
getRouteDescription ( Illuminate\Routing\Route $route ) : string
getRouteGroup ( string $route ) : string
getRouteResponse ( $route, $bindings, $headers = [] ) : Illuminate\Http\Response
getRouteRules ( $route, array $bindings ) : array
getUri ( $route ) : mixed
normalizeRule ( string $rule ) : string Normalizes a rule so that we can accept short types.
parseParameters ( string $rule, string $parameter ) : array Parse a parameter list.
parseRule ( string $rule, string $ruleName, array &$attributeData, integer $seed ) : void
parseStringRule ( string $rules ) : array Parse a string based rule.
splitValuePairs ( $parameters, $first = 'is ', $last = 'or ' )
transformHeadersToServerVars ( array $headers ) : array Transform headers array to array of $_SERVER vars with HTTP_* format.

메소드 상세

addRouteModelBindings() 보호된 메소드

protected addRouteModelBindings ( $route, array $bindings ) : mixed
$route
$bindings array
리턴 mixed

callRoute() 추상적인 공개 메소드

Call the given URI and return the Response.
abstract public callRoute ( string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string $content = null ) : Illuminate\Http\Response
$method string
$uri string
$parameters array
$cookies array
$files array
$server array
$content string
리턴 Illuminate\Http\Response

fancyImplode() 보호된 메소드

protected fancyImplode ( array $arr, string $first, string $last ) : string
$arr array
$first string
$last string
리턴 string

getParameters() 보호된 메소드

protected getParameters ( array $routeData, array $routeAction, array $bindings ) : mixed
$routeData array
$routeAction array
$bindings array
리턴 mixed

getRouteDescription() 보호된 메소드

protected getRouteDescription ( Illuminate\Routing\Route $route ) : string
$route Illuminate\Routing\Route
리턴 string

getRouteGroup() 보호된 메소드

protected getRouteGroup ( string $route ) : string
$route string
리턴 string

getRouteResponse() 보호된 메소드

protected getRouteResponse ( $route, $bindings, $headers = [] ) : Illuminate\Http\Response
$route
$bindings
$headers
리턴 Illuminate\Http\Response

getRouteRules() 보호된 메소드

protected getRouteRules ( $route, array $bindings ) : array
$route
$bindings array
리턴 array

getUri() 추상적인 보호된 메소드

abstract protected getUri ( $route ) : mixed
$route
리턴 mixed

normalizeRule() 보호된 메소드

Normalizes a rule so that we can accept short types.
protected normalizeRule ( string $rule ) : string
$rule string
리턴 string

parseParameters() 보호된 메소드

Parse a parameter list.
protected parseParameters ( string $rule, string $parameter ) : array
$rule string
$parameter string
리턴 array

parseRule() 보호된 메소드

protected parseRule ( string $rule, string $ruleName, array &$attributeData, integer $seed ) : void
$rule string
$ruleName string
$attributeData array
$seed integer
리턴 void

parseStringRule() 보호된 메소드

Parse a string based rule.
protected parseStringRule ( string $rules ) : array
$rules string
리턴 array

prepareMiddleware() 추상적인 공개 메소드

Prepares / Disables route middlewares.
abstract public prepareMiddleware ( boolean $disable = false ) : void
$disable boolean
리턴 void

processRoute() 추상적인 공개 메소드

abstract public processRoute ( Illuminate\Routing\Route $route, array $bindings = [], boolean $withResponse = true ) : array
$route Illuminate\Routing\Route
$bindings array
$withResponse boolean
리턴 array

splitValuePairs() 보호된 메소드

protected splitValuePairs ( $parameters, $first = 'is ', $last = 'or ' )

transformHeadersToServerVars() 보호된 메소드

Transform headers array to array of $_SERVER vars with HTTP_* format.
protected transformHeadersToServerVars ( array $headers ) : array
$headers array
리턴 array