Méthode | Description | |
---|---|---|
addURLParameters ( string $url, array $parameters ) : string | Add parameters to an URL | |
convertToPlainText ( string $text, boolean $includeAHrefs = true, boolean $includeImgAlts = true ) : string | Get plain text for a given text | |
getPage ( integer $pageId ) : array | Get all data for a page | |
getPageRevision ( integer $revisionId ) : array | Get a revision for a page | |
getVisitorId ( ) : string | Get the visitor's id (using a tracking cookie) | |
isSpam ( string $content, string $permaLink, string $author = null, string $email = null, string $url = null, string $type = 'comment' ) : boolean | string | General method to check if something is spam | |
pushToAppleApp ( mixed $alert, integer $badge = null, string $sound = null, array $extraDictionaries = null ) | Push a notification to Apple's notifications-server |
public static convertToPlainText ( string $text, boolean $includeAHrefs = true, boolean $includeImgAlts = true ) : string | ||
$text | string | The text to convert. |
$includeAHrefs | boolean | Should the url be appended after the link-text? |
$includeImgAlts | boolean | Should the alt tag be inserted for images? |
Résultat | string |
public static getPageRevision ( integer $revisionId ) : array | ||
$revisionId | integer | The revisionID. |
Résultat | array |
public static getVisitorId ( ) : string | ||
Résultat | string |
public static isSpam ( string $content, string $permaLink, string $author = null, string $email = null, string $url = null, string $type = 'comment' ) : boolean | string | ||
$content | string | The content that was submitted. |
$permaLink | string | The permanent location of the entry the comment was submitted to. |
$author | string | Commenter's name. |
string | Commenter's email address. | |
$url | string | Commenter's URL. |
$type | string | May be blank, comment, trackback, pingback, or a made up value like "registration". |
Résultat | boolean | string | Will return a boolean, except when we can't decide the status (unknown will be returned in that case) |
public static pushToAppleApp ( mixed $alert, integer $badge = null, string $sound = null, array $extraDictionaries = null ) | ||
$alert | mixed | The message/dictionary to send. |
$badge | integer | The number for the badge. |
$sound | string | The sound that should be played. |
$extraDictionaries | array | Extra dictionaries. |