This class is used to declare public functions

package OWR
subpackage Interfaces

 Methods

Public constructor

__construct(array $contents) 
author Pierre-Alain Mignot
access public

Parameters

$contents

array

the contents of the response (status, do, errors, etc..)

Returns a JSON object of $this

__toString() : string
author Pierre-Alain Mignot
access public

Returns

stringJSON equivalent of $this

Returns $this->_error

getError() : string
author Pierre-Alain Mignot
access public

Returns

stringthe error if any

Returns $this->_errors

getErrors() : array
author Pierre-Alain Mignot
access public

Returns

arraythe errors if any

Returns $this->_do

getNext() : string
author Pierre-Alain Mignot
access public

Returns

stringthe action to do now

Returns $this->_status

getStatus() : int
author Pierre-Alain Mignot
access public

Returns

intthe status

Returns $this->_tpl

getTpl() : string
author Pierre-Alain Mignot
access public

Returns

stringthe tpl to render