PHP 클래스 r, kirby

상속: extends FireKit\Database\ActiveRecord\ActiveRecord
파일 보기 프로젝트 열기: bastianallgeier/kirby 1 사용 예제들

공개 메소드들

메소드 설명
body ( ) : array Returns the request body from POST requests for example
data ( ) fetch all data from the request and sanitize it
get ( mixed $key = false, mixed $default = null ) : mixed Gets a request value by key
is_ajax ( ) : boolean Checks if the current request is an AJAX request
is_delete ( ) : boolean Checks if the current request is a DELETE request
is_get ( ) : boolean Checks if the current request is a GET request
is_post ( ) : boolean Checks if the current request is a POST request
is_put ( ) : boolean Checks if the current request is a PUT request
method ( ) : string Returns the current request method
referer ( string $default = null ) : string Returns the HTTP_REFERER
sanitize ( array $data ) : array Sanitizes the incoming data
set ( mixed $key, mixed $value = null ) Sets a request value by key

메소드 상세

body() 정적인 공개 메소드

Returns the request body from POST requests for example
static public body ( ) : array
리턴 array

data() 정적인 공개 메소드

fetch all data from the request and sanitize it
static public data ( )

get() 정적인 공개 메소드

Gets a request value by key
static public get ( mixed $key = false, mixed $default = null ) : mixed
$key mixed The key to look for. Pass false or null to return the entire request array.
$default mixed Optional default value, which should be returned if no element has been found
리턴 mixed

is_ajax() 정적인 공개 메소드

Checks if the current request is an AJAX request
static public is_ajax ( ) : boolean
리턴 boolean

is_delete() 정적인 공개 메소드

Checks if the current request is a DELETE request
static public is_delete ( ) : boolean
리턴 boolean

is_get() 정적인 공개 메소드

Checks if the current request is a GET request
static public is_get ( ) : boolean
리턴 boolean

is_post() 정적인 공개 메소드

Checks if the current request is a POST request
static public is_post ( ) : boolean
리턴 boolean

is_put() 정적인 공개 메소드

Checks if the current request is a PUT request
static public is_put ( ) : boolean
리턴 boolean

method() 정적인 공개 메소드

Returns the current request method
static public method ( ) : string
리턴 string POST, GET, DELETE, PUT

referer() 정적인 공개 메소드

Returns the HTTP_REFERER
static public referer ( string $default = null ) : string
$default string Define a default URL if no referer has been found
리턴 string

sanitize() 정적인 공개 메소드

Sanitizes the incoming data
static public sanitize ( array $data ) : array
$data array
리턴 array

set() 정적인 공개 메소드

Sets a request value by key
static public set ( mixed $key, mixed $value = null )
$key mixed The key to define
$value mixed The value for the passed key