PHP Class PlaydarResolver, playdar-core

Author: David Singleton (http://dsingleton.co.uk) A base player resolver written in PHP. Handles basic request/response, encoding.
Mostra file Open project: RJ/playdar-core Class Usage Examples

Protected Properties

Property Type Description
$name
$targetTime
$weight Lower is better

Public Methods

Method Description
__construct ( ) 1-100. higher means preferable.
errorHandler ( $errno, $errstr, $errfile, $errline )
getSettings ( ) Settings object for this resolver, reported when we start
handleRequest ( $fh )
log ( $message )
resolve ( $request ) Find shit. Returns an array of result object
sendResponse ( $response ) Output reply Puts a 4-byte big-endian int first, denoting length of message

Method Details

__construct() public method

1-100. higher means preferable.
public __construct ( )

errorHandler() public method

public errorHandler ( $errno, $errstr, $errfile, $errline )

getSettings() public method

Settings object for this resolver, reported when we start
public getSettings ( )

handleRequest() public method

public handleRequest ( $fh )

log() public method

public log ( $message )

resolve() abstract public method

Find shit. Returns an array of result object
abstract public resolve ( $request )

sendResponse() public method

Output reply Puts a 4-byte big-endian int first, denoting length of message
public sendResponse ( $response )

Property Details

$name protected_oe property

protected $name

$targetTime protected_oe property

protected $targetTime

$weight protected_oe property

Lower is better
protected $weight