Ubiquity  2.0.0
php rapid development framework
ResponseFormatter Class Reference

Public Member Functions

 get ($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 21 of file ResponseFormatter.php.

◆ format()

format (   $arrayResponse)

Formats a response array.

Parameters
array$arrayResponse
Returns
string

Definition at line 46 of file ResponseFormatter.php.

◆ formatException()

formatException (   $e)

Definition at line 63 of file ResponseFormatter.php.

◆ get()

get (   $datas)
Parameters
array$datas
Returns
array

Definition at line 13 of file ResponseFormatter.php.

◆ getModel()

getModel (   $controllerName)

Definition at line 50 of file ResponseFormatter.php.

◆ getOne()

getOne (   $datas)

Definition at line 37 of file ResponseFormatter.php.

◆ toJson()

toJson (   $data)

Definition at line 59 of file ResponseFormatter.php.

◆ toXML()

static toXML (   $data,
$xml_data 
)
static

Definition at line 67 of file ResponseFormatter.php.


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