PHP 클래스 PMA\libraries\Response

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
addHTML ( string $content ) : void Add HTML code to the response
addJSON ( mixed $json, mixed $value = null ) : void Add JSON code to the response
disable ( ) : void Disables the rendering of the header and the footer in responses
getCWD ( ) : string Returns the path to the current working directory Necessary to work around a PHP bug where the CWD is reset after the initial script exits
getFooter ( ) : Footer Returns a PMA\libraries\Footer object
getHeader ( ) : Header Returns a PMA\libraries\Header object
getInstance ( ) : Response Returns the singleton Response object
header ( string $text ) : void Wrapper around PHP's header() function.
headersSent ( ) : boolean Wrapper around PHP's headers_sent() function.
isAjax ( ) : boolean Returns true or false depending on whether we are servicing an ajax request
response ( ) : void Sends an HTML response to the browser
setRequestStatus ( boolean $state ) : void Set the status of an ajax response, whether it is a success or an error

비공개 메소드들

메소드 설명
__construct ( ) Creates a new class instance
_ajaxResponse ( ) : void Sends a JSON response to the browser
_getDisplay ( ) : string Renders the HTML response text
_htmlResponse ( ) : void Sends an HTML response to the browser

메소드 상세

addHTML() 공개 메소드

Add HTML code to the response
public addHTML ( string $content ) : void
$content string A string to be appended to the current output buffer
리턴 void

addJSON() 공개 메소드

Add JSON code to the response
public addJSON ( mixed $json, mixed $value = null ) : void
$json mixed Either a key (string) or an array or key-value pairs
$value mixed Null, if passing an array in $json otherwise it's a string value to the key
리턴 void

disable() 공개 메소드

Disables the rendering of the header and the footer in responses
public disable ( ) : void
리턴 void

getCWD() 공개 메소드

Returns the path to the current working directory Necessary to work around a PHP bug where the CWD is reset after the initial script exits
public getCWD ( ) : string
리턴 string

getFooter() 공개 메소드

Returns a PMA\libraries\Footer object
public getFooter ( ) : Footer
리턴 Footer

getHeader() 공개 메소드

Returns a PMA\libraries\Header object
public getHeader ( ) : Header
리턴 Header

getInstance() 공개 정적인 메소드

Returns the singleton Response object
public static getInstance ( ) : Response
리턴 Response object

header() 공개 메소드

Wrapper around PHP's header() function.
public header ( string $text ) : void
$text string header string
리턴 void

headersSent() 공개 메소드

Wrapper around PHP's headers_sent() function.
public headersSent ( ) : boolean
리턴 boolean

isAjax() 공개 메소드

Returns true or false depending on whether we are servicing an ajax request
public isAjax ( ) : boolean
리턴 boolean

response() 공개 정적인 메소드

Sends an HTML response to the browser
public static response ( ) : void
리턴 void

setRequestStatus() 공개 메소드

Set the status of an ajax response, whether it is a success or an error
public setRequestStatus ( boolean $state ) : void
$state boolean Whether the request was successfully processed
리턴 void