Ubiquity  2.0.3
php rapid development framework
ResponseFormatter Class Reference

Public Member Functions

 get ($datas)
 
 getDatas ($datas)
 
 getJSONDatas ($datas)
 
 cleanRestObject ($o)
 
 getOne ($datas)
 
 format ($arrayResponse)
 Formats a response array. More...
 
 getModel ($controllerName)
 
 toJson ($data)
 
 formatException ($e)
 

Static Public Member Functions

static toXML ($data, &$xml_data)
 

Detailed Description

Definition at line 7 of file ResponseFormatter.php.

Member Function Documentation

◆ cleanRestObject()

cleanRestObject (   $o)

Definition at line 29 of file ResponseFormatter.php.

◆ format()

format (   $arrayResponse)

Formats a response array.

Parameters
array$arrayResponse
Returns
string

Definition at line 54 of file ResponseFormatter.php.

◆ formatException()

formatException (   $e)

Definition at line 71 of file ResponseFormatter.php.

◆ get()

get (   $datas)
Parameters
array$datas
Returns
array

Definition at line 13 of file ResponseFormatter.php.

◆ getDatas()

getDatas (   $datas)

Definition at line 18 of file ResponseFormatter.php.

◆ getJSONDatas()

getJSONDatas (   $datas)

Definition at line 25 of file ResponseFormatter.php.

◆ getModel()

getModel (   $controllerName)

Definition at line 58 of file ResponseFormatter.php.

◆ getOne()

getOne (   $datas)

Definition at line 45 of file ResponseFormatter.php.

◆ toJson()

toJson (   $data)

Definition at line 67 of file ResponseFormatter.php.

◆ toXML()

static toXML (   $data,
$xml_data 
)
static

Definition at line 75 of file ResponseFormatter.php.


The documentation for this class was generated from the following file: