PHP Interface PAGI\Client\Result\IResult

PHP Version 5
Author: Marcelo Gornstein ([email protected])
Show file Open project: marcelog/pagi

Public Methods

Method Description
getCode ( ) : integer Returns the integer value of the code returned by agi.
getData ( ) : string Returns data, if any. False if none.
getOriginalLine ( ) : string Returns original line.
getResult ( ) : integer Returns result (result=xxx) from the result.
hasData ( ) : boolean Returns true if this command returned any data.
isResult ( string $value ) : boolean Compares result to a given value.

Method Details

getCode() public method

Returns the integer value of the code returned by agi.
public getCode ( ) : integer
return integer

getData() public method

Returns data, if any. False if none.
public getData ( ) : string
return string

getOriginalLine() public method

Returns original line.
public getOriginalLine ( ) : string
return string

getResult() public method

Returns result (result=xxx) from the result.
public getResult ( ) : integer
return integer

hasData() public method

Returns true if this command returned any data.
public hasData ( ) : boolean
return boolean

isResult() public method

Compares result to a given value.
public isResult ( string $value ) : boolean
$value string Value to match against.
return boolean