Documentation

Archive
in package

Table of Contents

Constants

DB_NAME  = 'twitter'
DIR_HTML  = 'mod/twitter/res/html/'
DIR_IMAGES  = 'mod/twitter/res/pics/'
HTTP_CACHETIME  = -1
TWITTER_URL_FETCH  = 'https://twitter.com/%s'
TWITTER_URL_FETCH_ALL  = 'https://twitter.com/%s/with_replies'
TWITTER_URL_FETCH_MEDIA  = 'https://twitter.com/%s/media'
TWITTER_URL_HTML  = 'https://twitter.com%s'
TWITTER_URL_MEDIA  = 'https://twitter.com/i/tweet/html?id=%s&modal=gallery'
TWITTER_URL_RSS  = 'https://queryfeed.net/tw?q=%%40%s'
TWITTER_URL_TWEET  = 'https://twitter.com/%s/status/%s'
URL_HTML  = '/getResource.php/twitter/html/'
URL_IMAGES  = '/getResource.php/twitter/pics/'
VERSION  = 31

Properties

$dbmsTable  : mixed
$dbName  : mixed
$doc  : mixed
$dom  : mixed
$tableName  : mixed
$userName  : mixed
$xpath  : mixed

Methods

__construct()  : mixed
asNode()  : mixed
fetch()  : mixed
fetchOLD()  : mixed
fetchTweet()  : mixed
getTextList()  : mixed
getUserList()  : mixed
upgrade()  : mixed
downloadHTML()  : mixed
downloadImage()  : mixed
downloadJSON()  : mixed
downloadTweet()  : mixed
downloadXPath()  : mixed
install()  : mixed
parseNodeOLD()  : mixed
parseTweet()  : mixed

Constants

DB_NAME

public mixed DB_NAME = 'twitter'

DIR_HTML

public mixed DIR_HTML = 'mod/twitter/res/html/'

DIR_IMAGES

public mixed DIR_IMAGES = 'mod/twitter/res/pics/'

HTTP_CACHETIME

public mixed HTTP_CACHETIME = -1

TWITTER_URL_FETCH

public mixed TWITTER_URL_FETCH = 'https://twitter.com/%s'

TWITTER_URL_FETCH_ALL

public mixed TWITTER_URL_FETCH_ALL = 'https://twitter.com/%s/with_replies'

TWITTER_URL_FETCH_MEDIA

public mixed TWITTER_URL_FETCH_MEDIA = 'https://twitter.com/%s/media'

TWITTER_URL_HTML

public mixed TWITTER_URL_HTML = 'https://twitter.com%s'

TWITTER_URL_MEDIA

public mixed TWITTER_URL_MEDIA = 'https://twitter.com/i/tweet/html?id=%s&modal=gallery'

TWITTER_URL_RSS

public mixed TWITTER_URL_RSS = 'https://queryfeed.net/tw?q=%%40%s'

TWITTER_URL_TWEET

public mixed TWITTER_URL_TWEET = 'https://twitter.com/%s/status/%s'

URL_HTML

public mixed URL_HTML = '/getResource.php/twitter/html/'

URL_IMAGES

public mixed URL_IMAGES = '/getResource.php/twitter/pics/'

Properties

$dbmsTable

protected mixed $dbmsTable

$tableName

protected mixed $tableName

Methods

__construct()

public __construct(mixed $userName[, mixed $autocreate = false ]) : mixed
Parameters
$userName : mixed
$autocreate : mixed = false

asNode()

public asNode(DOMDocument $dataDoc, array<string|int, mixed> $options) : mixed
Parameters
$dataDoc : DOMDocument
$options : array<string|int, mixed>

fetch()

public fetch([mixed $fetchAll = false ]) : mixed
Parameters
$fetchAll : mixed = false

fetchOLD()

public fetchOLD() : mixed

fetchTweet()

public fetchTweet(mixed $tweetId, mixed $tweetHTML, mixed $isHTML[, mixed $id = null ]) : mixed
Parameters
$tweetId : mixed
$tweetHTML : mixed
$isHTML : mixed
$id : mixed = null

getTextList()

public getTextList(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>

getUserList()

public static getUserList() : mixed

downloadHTML()

protected downloadHTML(mixed $href) : mixed
Parameters
$href : mixed

downloadImage()

protected downloadImage(mixed $href) : mixed
Parameters
$href : mixed

downloadJSON()

protected downloadJSON(mixed $href[, mixed $useCache = false ]) : mixed
Parameters
$href : mixed
$useCache : mixed = false

downloadTweet()

protected downloadTweet(mixed $tweetId) : mixed
Parameters
$tweetId : mixed

downloadXPath()

protected downloadXPath(mixed $href[, mixed $useCache = false ]) : mixed
Parameters
$href : mixed
$useCache : mixed = false

install()

protected install() : mixed

parseNodeOLD()

protected parseNodeOLD(DOMNode $tweetNode, mixed $tweetId) : mixed
Parameters
$tweetNode : DOMNode
$tweetId : mixed

parseTweet()

protected parseTweet(mixed $tweetId, mixed $tweetHTML, mixed $isHTML) : mixed
Parameters
$tweetId : mixed
$tweetHTML : mixed
$isHTML : mixed

        
On this page

Search results