PHP 클래스 Api\V1\Engine\Api

사용 중단:
상속: extends KernelLoader, implements ApplicationInterface
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$content string

공개 메소드들

메소드 설명
display ( ) : Response
initialize ( ) Initializes the entire API; extract class+method from the request, call, and output.
isAuthorized ( ) : boolean Default authentication
isValidRequestMethod ( string $method ) : boolean This is called in backend/modules//engine/api.php to limit certain calls to a given request method.
output ( integer $statusCode, array $data = null ) : boolean Output the return

비공개 메소드들

메소드 설명
arrayToXML ( mixed &$input, string $key, DOMElement $XML ) Callback-method for elements in the return-array
getHeaderMessage ( $statusCode ) : string Get the relevant HTTP status message
outputJSON ( integer $statusCode, array $data = null ) Output as JSON
outputXML ( integer $statusCode, array $data = null ) Output as XML

메소드 상세

display() 공개 메소드

public display ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

initialize() 공개 메소드

This method exists because the service container needs to be set before the rest of API functionality gets loaded.
public initialize ( )

isAuthorized() 공개 정적인 메소드

Default authentication
public static isAuthorized ( ) : boolean
리턴 boolean

isValidRequestMethod() 공개 정적인 메소드

This is called in backend/modules//engine/api.php to limit certain calls to a given request method.
public static isValidRequestMethod ( string $method ) : boolean
$method string
리턴 boolean

output() 공개 정적인 메소드

Output the return
public static output ( integer $statusCode, array $data = null ) : boolean
$statusCode integer The status code.
$data array The data to return.
리턴 boolean

프로퍼티 상세

$content 보호되어 있는 정적으로 프로퍼티

protected static string $content
리턴 string