PHP 클래스 get, nodejs-autorestart

파일 보기 프로젝트 열기: shimondoodkin/nodejs-autorestart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$config object Opens up public access to config constants and variables and the cache object
$loadedObjects array Index of objects loaded, used to maintain uniqueness of singletons

공개 메소드들

메소드 설명
helper ( $helper ) : object Returns a helper object
htmlentities ( string $string, integer $quoteStyle = ENT_COMPAT, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string Overloads the php function htmlentities and changes the default charset to UTF-8 and the default value for the fourth parameter $doubleEncode to false. Also adds ability to pass a null value to get the default $quoteStyle and $charset (removes need to repeatedly define ENT_COMPAT, 'UTF-8', just to access the $doubleEncode argument)
xhtmlentities ( string $string, integer $quoteStyle = ENT_NOQUOTES, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string Converts special characters in a string to XHTML-valid ASCII encoding the same as htmlentities except this method allows the use of HTML tags within your string. Signature is the same as htmlentities except that the only character sets available (third argument) are UTF-8 (default) and ISO-8859-1 (Latin-1).

보호된 메소드들

메소드 설명
_loadObject ( string $objectType, string $objectName ) : object Loads an object as a singleton
initXhtmlentities ( integer $quoteStyle, string $charset, boolean $doubleEncode ) Initialize the character maps needed for the xhtmlentities() method and verifies the argument values passed to it are valid.

메소드 상세

_loadObject() 보호된 정적인 메소드

Loads an object as a singleton
protected static _loadObject ( string $objectType, string $objectName ) : object
$objectType string
$objectName string
리턴 object

helper() 공개 정적인 메소드

Returns a helper object
public static helper ( $helper ) : object
리턴 object

htmlentities() 공개 정적인 메소드

If you are using a PHP version prior to 5.2.3 the $doubleEncode parameter is not available so you will need to comment out the last parameter in the return clause (including the preceding comma)
public static htmlentities ( string $string, integer $quoteStyle = ENT_COMPAT, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string
$string string
$quoteStyle integer Uses ENT_COMPAT if null or omitted
$charset string Uses UTF-8 if null or omitted
$doubleEncode boolean
리턴 string

initXhtmlentities() 보호된 정적인 메소드

Initialize the character maps needed for the xhtmlentities() method and verifies the argument values passed to it are valid.
protected static initXhtmlentities ( integer $quoteStyle, string $charset, boolean $doubleEncode )
$quoteStyle integer
$charset string Only valid options are UTF-8 and ISO-8859-1 (Latin-1)
$doubleEncode boolean

xhtmlentities() 공개 정적인 메소드

Converts special characters in a string to XHTML-valid ASCII encoding the same as htmlentities except this method allows the use of HTML tags within your string. Signature is the same as htmlentities except that the only character sets available (third argument) are UTF-8 (default) and ISO-8859-1 (Latin-1).
public static xhtmlentities ( string $string, integer $quoteStyle = ENT_NOQUOTES, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string
$string string
$quoteStyle integer Constants available are ENT_NOQUOTES (default), ENT_QUOTES, ENT_COMPAT
$charset string Only valid options are UTF-8 (default) and ISO-8859-1 (Latin-1)
$doubleEncode boolean Default is false
리턴 string

프로퍼티 상세

$config 공개적으로 정적으로 프로퍼티

Opens up public access to config constants and variables and the cache object
public static object $config
리턴 object

$loadedObjects 공개적으로 정적으로 프로퍼티

Index of objects loaded, used to maintain uniqueness of singletons
public static array $loadedObjects
리턴 array