PHP Class API_IO

Author: zsx ([email protected])
Show file Open project: zblogcn/zblogphp Class Usage Examples

Public Methods

Method 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

Method Description
__construct ( string $formatString ) To avoid construct outside this class.

Method Details

__clone() public method

To avoid clone
public __clone ( )

__get() public method

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

__set() public method

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

end() public static method

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

formatObjectName() public static method

Format array key
public static formatObjectName ( &$object )

formatObjectNameForSave() public static method

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

getInstance() public static method

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

post() public static method

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