PHP Class PlaydarResolver, playdar-core

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

Protected Properties

Свойство Type Description
$name
$targetTime
$weight Lower is better

Méthodes publiques

Méthode 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 méthode

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

errorHandler() public méthode

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

getSettings() public méthode

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

handleRequest() public méthode

public handleRequest ( $fh )

log() public méthode

public log ( $message )

resolve() abstract public méthode

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

sendResponse() public méthode

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