PHP Class Redaxscript\Reader

Since: 3.0.0
Author: Henry Ruhs
ファイルを表示 Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_assoc boolean assoc
$_dataArray array data array
$_dataObject object data object

Public Methods

Method Description
getArray ( ) : array get the array
getJSON ( ) : string get the json
getObject ( ) : array get the object
getXML ( ) : string get the xml
load ( string $url = null ) : Reader load from url
loadJSON ( string $url = null, boolean $assoc = true ) : Reader load json from url
loadXML ( string $url = null, boolean $assoc = true ) : Reader load xml from url

Protected Methods

Method Description
_convertToArray ( ) : array convert to array
_convertToObject ( ) : object convert to object

Method Details

_convertToArray() protected method

convert to array
Since: 3.0.0
protected _convertToArray ( ) : array
return array

_convertToObject() protected method

convert to object
Since: 3.0.0
protected _convertToObject ( ) : object
return object

getArray() public method

get the array
Since: 3.0.0
public getArray ( ) : array
return array

getJSON() public method

get the json
Since: 3.0.0
public getJSON ( ) : string
return string

getObject() public method

get the object
Since: 3.0.0
public getObject ( ) : array
return array

getXML() public method

get the xml
Since: 3.0.0
public getXML ( ) : string
return string

load() public method

load from url
Since: 3.0.0
public load ( string $url = null ) : Reader
$url string
return Reader

loadJSON() public method

load json from url
Since: 3.0.0
public loadJSON ( string $url = null, boolean $assoc = true ) : Reader
$url string
$assoc boolean
return Reader

loadXML() public method

load xml from url
Since: 3.0.0
public loadXML ( string $url = null, boolean $assoc = true ) : Reader
$url string
$assoc boolean
return Reader

Property Details

$_assoc protected_oe property

assoc
protected bool $_assoc
return boolean

$_dataArray protected_oe property

data array
protected array $_dataArray
return array

$_dataObject protected_oe property

data object
protected object $_dataObject
return object