API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
php_text_cache::establishConnection | ( | $ | url | ) |
Establishes a connection, given an url
string | The url of the data |
Références $host, $url, php_http_connection::formatHost(), et php_http_connector::setConnection().
Référencé par fromURL().
php_text_cache::fromCache | ( | $ | cacheFile | ) |
Get text from cache file
string | The file path |
Références fromFile().
Référencé par getData().
php_text_cache::fromFile | ( | $ | filename | ) |
Get text from an url or file
string | The url or file path |
Références $filename, et php_file_utilities::getDataFromFile().
Référencé par fromCache(), et fromURL().
php_text_cache::fromURL | ( | $ | url, |
$ | cacheFile | ||
) |
Gets data from an url and caches a copy of the data
string | The url for the data |
string | The cache file path |
Références $url, establishConnection(), fromFile(), et php_file_utilities::putDataToFile().
Référencé par getData().
php_text_cache::getCacheFileName | ( | $ | url | ) |
php_text_cache::getData | ( | $ | url | ) |
Gets data from an url, or its cache file
string | The url of the data |
Références $url, fromCache(), fromURL(), et getCacheFileName().
php_text_cache::php_text_cache | ( | $ | cacheDir = './' , |
$ | cacheTime = -1 , |
||
$ | timeout = 0 |
||
) |
Constructor
string | Directory in which to store the cache files |
int | Expiry time for cache file (-1 signifies no expiry limit) |
int | Time in seconds to disconnect after attempting an http connection |
Références $cacheDir, et $cacheTime.
php_text_cache::setTimeout | ( | $ | timeout | ) |
Specifies the default timeout value for connecting to a host
int | The number of seconds to timeout when attempting to connect to a server |
php_text_cache::useHTTPClient | ( | $ | truthVal | ) |
Specifies whether an HTTP client should be used to establish a connection
boolean | True if an HTTP client is to be used to establish the connection |
php_text_cache::$cacheDir |
Référencé par php_text_cache().
php_text_cache::$cacheTime |
Référencé par php_text_cache().
php_text_cache::$doUseHTTPClient |
php_text_cache::$httpTimeout |