PHP 클래스 Web

상속: extends Base
파일 보기 프로젝트 열기: bcosca/fatfree-core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$wrapper @}

공개 메소드들

메소드 설명
acceptable ( $list = NULL ) : array | string | FALSE Return the MIME types stated in the HTTP Accept header as an array; If a list of MIME types is specified, return the best match; or FALSE if none found
engine ( $arg = 'curl' ) : string Specify the HTTP request engine to use; If not available, fall back to an applicable substitute
filler ( $count = 1, $max = 20, $std = TRUE ) : string Return chunk of text from standard Lorem Ipsum passage
mime ( $file ) : string Detect MIME type using file extension
minify ( $files, $mime = NULL, $header = TRUE, $path = NULL ) : string Strip Javascript/CSS files of extraneous whitespaces and comments; Return combined output as a minified string
progress ( $id ) : integer | FALSE Return upload progress in bytes, FALSE on failure
receive ( $func = NULL, $overwrite = FALSE, $slug = TRUE ) : array | boolean Receive file(s) from HTTP client
request ( $url, array $options = NULL ) : array | FALSE Submit HTTP request; Use HTTP context options (described in http://www.php.net/manual/en/context.http.php) if specified; Cache the page as instructed by remote server
rss ( $url, $max = 10, $tags = NULL ) : array | FALSE Retrieve RSS feed and return as an array
send ( $file, $mime = NULL, $kbps, $force = TRUE, $name = NULL, $flush = TRUE ) : integer | FALSE Transmit file to HTTP client; Return file size if successful, FALSE otherwise
slug ( $text ) : string Return a URL/filesystem-friendly version of string
subst ( array &$old, $new ) : null Replace old headers with new elements
whois ( $addr, $server = 'whois.internic.net' ) : string | FALSE Retrieve information from whois server

보호된 메소드들

메소드 설명
_curl ( $url, $options ) : array HTTP request via cURL
_socket ( $url, $options ) : array HTTP request via low-level TCP/IP socket
_stream ( $url, $options ) : array HTTP request via PHP stream wrapper

메소드 상세

_curl() 보호된 메소드

HTTP request via cURL
protected _curl ( $url, $options ) : array
$url string
$options array
리턴 array

_socket() 보호된 메소드

HTTP request via low-level TCP/IP socket
protected _socket ( $url, $options ) : array
$url string
$options array
리턴 array

_stream() 보호된 메소드

HTTP request via PHP stream wrapper
protected _stream ( $url, $options ) : array
$url string
$options array
리턴 array

acceptable() 공개 메소드

Return the MIME types stated in the HTTP Accept header as an array; If a list of MIME types is specified, return the best match; or FALSE if none found
public acceptable ( $list = NULL ) : array | string | FALSE
$list string|array
리턴 array | string | FALSE

engine() 공개 메소드

Specify the HTTP request engine to use; If not available, fall back to an applicable substitute
public engine ( $arg = 'curl' ) : string
$arg string
리턴 string

filler() 공개 메소드

Return chunk of text from standard Lorem Ipsum passage
public filler ( $count = 1, $max = 20, $std = TRUE ) : string
$count int
$max int
$std bool
리턴 string

mime() 공개 메소드

Detect MIME type using file extension
public mime ( $file ) : string
$file string
리턴 string

minify() 공개 메소드

Strip Javascript/CSS files of extraneous whitespaces and comments; Return combined output as a minified string
public minify ( $files, $mime = NULL, $header = TRUE, $path = NULL ) : string
$files string|array
$mime string
$header bool
$path string
리턴 string

progress() 공개 메소드

Return upload progress in bytes, FALSE on failure
public progress ( $id ) : integer | FALSE
$id string
리턴 integer | FALSE

receive() 공개 메소드

Receive file(s) from HTTP client
public receive ( $func = NULL, $overwrite = FALSE, $slug = TRUE ) : array | boolean
$func callback
$overwrite bool
$slug callback|bool
리턴 array | boolean

request() 공개 메소드

Submit HTTP request; Use HTTP context options (described in http://www.php.net/manual/en/context.http.php) if specified; Cache the page as instructed by remote server
public request ( $url, array $options = NULL ) : array | FALSE
$url string
$options array array
리턴 array | FALSE

rss() 공개 메소드

Retrieve RSS feed and return as an array
public rss ( $url, $max = 10, $tags = NULL ) : array | FALSE
$url string
$max int
$tags string
리턴 array | FALSE

send() 공개 메소드

Transmit file to HTTP client; Return file size if successful, FALSE otherwise
public send ( $file, $mime = NULL, $kbps, $force = TRUE, $name = NULL, $flush = TRUE ) : integer | FALSE
$file string
$mime string
$kbps int
$force bool
$name string
$flush bool
리턴 integer | FALSE

slug() 공개 메소드

Return a URL/filesystem-friendly version of string
public slug ( $text ) : string
$text string
리턴 string

subst() 공개 메소드

Replace old headers with new elements
public subst ( array &$old, $new ) : null
$old array array
$new string|array
리턴 null

whois() 공개 메소드

Retrieve information from whois server
public whois ( $addr, $server = 'whois.internic.net' ) : string | FALSE
$addr string
$server string
리턴 string | FALSE

프로퍼티 상세

$wrapper 보호되어 있는 프로퍼티

@}
protected $wrapper