Liste de tous les membres
Documentation des fonctions membres
static AdmintoolsHelperDownload::chmod |
( |
|
$path, |
|
|
|
$mode |
|
) |
| |
|
staticprivate |
static AdmintoolsHelperDownload::download |
( |
|
$url, |
|
|
|
$target |
|
) |
| |
|
static |
static AdmintoolsHelperDownload::downloadAndReturn |
( |
|
$url | ) |
|
|
static |
Downloads from a URL and returns the result as a string
- Paramètres:
-
string | $url | The URL to download from |
- Renvoie:
- mixed Result string on success, false on failure
- Depuis:
- 2.5.4
Références $url, et null.
static AdmintoolsHelperDownload::getAdapters |
( |
| ) |
|
|
staticprivate |
Detect and return available download "adapters" (not really adapters, as we don't follow the Adapter pattern, yet)
- Renvoie:
- array
- Depuis:
- 2.5.4
static& AdmintoolsHelperDownload::getCURL |
( |
|
$url, |
|
|
|
$fp = null , |
|
|
|
$nofollow = false |
|
) |
| |
|
staticprivate |
Downloads the contents of a URL and writes them to disk (if $fp is not null) or returns them as a string (if $fp is null)
- Paramètres:
-
string | $url | The URL to download from |
resource | $fp | The file pointer to download to. Omit to return the contents. |
boolean | $nofollow | Should we follow 301/302/307 redirection HTTP headers? |
- Renvoie:
- bool|string False on failure, true on success ($fp not null) or the URL contents (if $fp is null)
- Depuis:
- 2.5.4
Références $data, et $url.
static& AdmintoolsHelperDownload::getFOPEN |
( |
|
$url, |
|
|
|
$fp = null |
|
) |
| |
|
staticprivate |
Download from a URL using URL fopen() wrappers
- Paramètres:
-
string | $url | The URL to download from |
resource | $fp | The file pointer to download to; leave null to return the d/l file as a string |
- Renvoie:
- bool|string False on failure, true on success ($fp not null) or the URL contents (if $fp is null)
- Depuis:
- 2.5.4
Références $return, $url, et elseif.
static AdmintoolsHelperDownload::hasCURL |
( |
| ) |
|
|
staticprivate |
Does the server support PHP's cURL extension?
- Renvoie:
- bool True if it is supported
- Depuis:
- 2.5.4
Références null.
static AdmintoolsHelperDownload::hasFOPEN |
( |
| ) |
|
|
staticprivate |
Does the server support URL fopen() wrappers?
- Renvoie:
- bool
- Depuis:
- 2.5.4
Références null.
La documentation de cette classe a été générée à partir du fichier suivant :