PHP Class Web\Pingback

Inheritance: extends Prefab
Show file Open project: bcosca/fatfree-core

Protected Properties

Property Type Description
$log

Public Methods

Method Description
__construct ( ) : object Instantiate class
inspect ( $source ) : null Load local page contents, parse HTML anchor tags, find permalinks, and send XML-RPC calls to corresponding pingback servers
listen ( $func, $path = NULL ) : string Receive ping, check if local page is pingback-enabled, verify source contents, and return XML-RPC response
log ( ) : string Return transaction history

Protected Methods

Method Description
enabled ( $url ) : boolean Return TRUE if URL points to a pingback-enabled resource

Method Details

__construct() public method

Instantiate class
public __construct ( ) : object
return object

enabled() protected method

Return TRUE if URL points to a pingback-enabled resource
protected enabled ( $url ) : boolean
$url
return boolean

inspect() public method

Load local page contents, parse HTML anchor tags, find permalinks, and send XML-RPC calls to corresponding pingback servers
public inspect ( $source ) : null
$source string
return null

listen() public method

Receive ping, check if local page is pingback-enabled, verify source contents, and return XML-RPC response
public listen ( $func, $path = NULL ) : string
$func callback
$path string
return string

log() public method

Return transaction history
public log ( ) : string
return string

Property Details

$log protected property

protected $log