PHP Class API_IO

Author: zsx ([email protected])
Afficher le fichier Open project: zblogcn/zblogphp Class Usage Examples

Méthodes publiques

Méthode Description
__clone ( ) To avoid clone
__get ( $name ) Return outputData or HTTP_GET
__set ( string $name, $value ) Set outputData
end ( integer $errorCode, string $errorMessage = "" ) Write data to page and exit
formatObjectName ( &$object ) Format array key
formatObjectNameForSave ( &$object ) Format array key for save
getInstance ( $formatString ) : API_Route To return instance
post ( string $name ) Return POST Data

Private Methods

Méthode Description
__construct ( string $formatString ) To avoid construct outside this class.

Method Details

__clone() public méthode

To avoid clone
public __clone ( )

__get() public méthode

Return outputData or HTTP_GET
public __get ( $name )
$name

__set() public méthode

Set outputData
public __set ( string $name, $value )
$name string
$value

end() public static méthode

Write data to page and exit
public static end ( integer $errorCode, string $errorMessage = "" )
$errorCode integer
$errorMessage string

formatObjectName() public static méthode

Format array key
public static formatObjectName ( &$object )

formatObjectNameForSave() public static méthode

Format array key for save
public static formatObjectNameForSave ( &$object )

getInstance() public static méthode

To return instance
public static getInstance ( $formatString ) : API_Route
Résultat API_Route

post() public static méthode

Return POST Data
public static post ( string $name )
$name string