Class: Services_Trackback
Source Location: /Services_Trackback-0.6.2/Services/Trackback.php
Trackback A generic class to send/receive trackbacks.
Author(s):
Version:
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
Services_Trackback (Constructor) [line 148]
void Services_Trackback(
)
|
|
Constructor Creates a new Trackback object. Private because of factory use.
addSpamCheck [line 626]
addSpamCheck Add a spam check module to the trackback.
Parameters:
autodiscover [line 320]
autodiscover Checks a given URL for trackback autodiscovery code.
checkSpam [line 732]
bool checkSpam(
[bool
$continouse = false])
|
|
checkSpam Checks the given trackback against several spam protection sources such as DNSBL, SURBL, Word BL,... The sources to check are defined using Services_Trackback_SpamCheck modules.
Parameters:
create [line 207]
Factory This static method is used to create a trackback object. (Services_Trackback::create($data)) The factory requires a data array as described below for creation. The 'id' key is obligatory for this method. Every other data is not quite necessary for the creation, but might be necessary for calling other methods afterwards. See the specific methods for further info on which data is required. Data: Required id The ID of the trackback target. Optional title string Title of the trackback. excerpt string Abstract of the trackback. blog_name string Name of the trackback blog. url string URL of the trackback. trackback_url string URL to send trackbacks to. extra array Content of $_SERVER, captured while doing Services_Trackback::receive(). Options: strictness int The default strictness to use in Services_Trackback::autodiscover(). timeout int The default timeout for network operations in seconds. fetchlines int The max number of lines to fetch over the network. httprequest array The options utilized by HTTP_Request are stored here. The following options are the most commonly used for HTTP_Request in Services_Trackback. All other options are supported too, see HTTP_Request::HTTP_Request() for more detailed documentation. Some options for HTTP_Request are overwritten through the global settings of Services_Trackback (such as timeout). timeout float THE TIMEOUT SETTING IS OVERWRITTEN BY THE GLOBAL Services_Trackback SETTING. allowRedirects bool Wether to follow HTTP redirects or not. maxRedirects int Maximum number of redirects. useragent string The user agent to use for HTTP requests.
Parameters:
createSpamCheck [line 656]
mixed &createSpamCheck(
string
$spamCheckType, [array
$options = array()], [int
$priority = 0])
|
|
createSpamCheck Create and add a spam check module to the trackback.
Parameters:
get [line 767]
get Get data from the trackback. Returns the value of a given key or PEAR_Error.
Parameters:
getAutodiscoveryCode [line 478]
string getAutodiscoveryCode(
[bool
$comments = true])
|
|
getAutodiscoverCode Returns the RDF Code for a given website to let weblogs autodiscover the possibility of tracking it back. The following data has to be set to call this method: 'id' 'title' 'url' 'trackback_url'
Parameters:
getOptions [line 304]
getOptions Get the currently set option set.
getResponseError [line 588]
void getResponseError(
string
$message, int
$code)
|
|
getResponseError Returns an XML response for a trackback error.
Parameters:
getResponseSuccess [line 564]
string getResponseSuccess(
)
|
|
getResponseSuccess Returns an XML response for a successful trackback.
receive [line 524]
receive Receives a trackback. The following data has to be set in the data array to fulfill this operation: 'id'
Parameters:
removeSpamCheck [line 700]
bool removeSpamCheck(
object(Services_Trackback_SpamCheck)
&$spamCheck)
|
|
removeSpamCheck Remove a spam check module from the trackback.
Parameters:
send [line 400]
mixed send(
[string
$data = null])
|
|
send This method sends a trackback to the trackback_url saved in it. The data array of the trackback object can be completed by submitting the necessary data through the $data parameter of this method. The following data has to be set to call this method: 'title' Title of the weblog entry. 'url' URL of the weblog entry. 'excerpt' Excerpt of the weblog entry. 'blog_name' Name of the weblog. 'trackback_url' URL to send the trackback to. Services_Trackback::send() requires PEAR::HTTP_Request. The options for the HTTP_Request object are stored in the global options array using the key 'http_request'.
Parameters:
set [line 789]
mixed set(
string
$key, string
$val)
|
|
set Set data of the trackback. Saves the value of a given key , returning true on success, PEAR_Error on faulure.
Parameters:
setOptions [line 245]
mixed setOptions(
array
$options)
|
|
setOptions Set options for the trackback.
Parameters:
_checkData [line 917]
void _checkData(
array
$keys, [array
$data = null])
|
|
_checkData Checks a given array of keys for the validity of their data.
Parameters:
_checkURLs [line 949]
mixed _checkURLs(
string
$url1, string
$url2, constant
$strictness)
|
|
_checkURLs This little method checks if 2 URLs (the URL to trackback against the trackback identifier found in the autodiscovery code) are equal.
Parameters:
_fromArray [line 808]
mixed _fromArray(
array
$data)
|
|
Create a Trackback from a $data array.
Parameters:
_getContent [line 832]
string _getContent(
string
$url)
|
|
_getContent Receive the content from a specific URL.
Parameters:
_getDecodedData [line 889]
void _getDecodedData(
array
$keys, [array
$data = null])
|
|
_getDecodedData Receives a number of data from the internal data store.
Parameters:
_getEncodedData [line 862]
void _getEncodedData(
array
$keys, [array
$data = null])
|
|
_getEncodedData Receives a number of data from the internal data store, encoded for XML usage.
Parameters:
_interpretTrackbackResponse [line 1006]
void _interpretTrackbackResponse(
string
$response)
|
|
Interpret the returned XML code, when sending a trackback.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:25:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|