Go to the source code of this file.
Namespaces | |
| FDL | |
Functions | |
| Redirect ($action, $appname, $actionname, $otherurl="", $httpparamredirect=false) | |
| RedirectSender (Action &$action) | |
| redirectAsGuest (Action &$action) | |
| getHttpVars ($name, $def="", $scope="all") | |
| GetHttpCookie ($name, $def="") | |
| SetHttpVar ($name, $def) | |
| GetMimeType ($ext) | |
| GetExt ($mime_type) | |
| Http_Download ($src, $ext, $name, $add_ext=TRUE, $mime_type="") | |
| Http_DownloadFile ($filename, $name, $mime_type= '', $inline=false, $cache=true, $deleteafter=false) | |
| PrintAllHttpVars () | |
| glue_url ($parsed) | |
| setHeaderCache ($mime="text/css") | |
| GetExt | ( | $mime_type | ) |
Definition at line 169 of file Lib.Http.php.
| GetHttpCookie | ( | $name, | |
$def = "" |
|||
| ) |
Definition at line 142 of file Lib.Http.php.
| getHttpVars | ( | $name, | |
$def = "", |
|||
$scope = "all" |
|||
| ) |
return value of an http parameter
| string | $name | parameter key |
| string | $def | default value if parameter is not set |
| string | $scope | The scope for the search of the value ('zone' for $ZONE_ARGS, 'get' for $_GET, 'post' for $_POST and 'all' for searching in all) |
Definition at line 124 of file Lib.Http.php.
| GetMimeType | ( | $ext | ) |
Definition at line 158 of file Lib.Http.php.
| glue_url | ( | $parsed | ) |
Definition at line 286 of file Lib.Http.php.
| Http_Download | ( | $src, | |
| $ext, | |||
| $name, | |||
$add_ext = TRUE, |
|||
$mime_type = "" |
|||
| ) |
Send a response with the given data to be downloaded by the client.
No output should be generated on stdout after calling this function.
| string | $src | the data to send to the client |
| string | $ext | the extension of the data (e.g. "pdf", "png", etc.) |
| string | $name | the filename that will be used by the client for saving to a file |
| bool | $add_ext | add the $ext extension to the $name filename (default = TRUE) |
| string | $mime_type | the Content-Type MIME type of the response. If empty, compute MIME type from $ext extension (this is the default behaviour) |
Definition at line 197 of file Lib.Http.php.
Here is the call graph for this function:| Http_DownloadFile | ( | $filename, | |
| $name, | |||
$mime_type = '', |
|||
$inline = false, |
|||
$cache = true, |
|||
$deleteafter = false |
|||
| ) |
Send a response with the content of a local file to be downloaded by the client
No output should be generated on stdout after calling this function.
| string | $filename | pathname of the file that will be sent to the client (e.g. "/tmp/foo.pdf") |
| string | $name | the basename of the file (e.g. "foo.pdf") |
| string | $mime_type | the Content-Type MIME type of the response (e.g. "application/pdf") |
| bool | $inline | Send the data with inline Content-Disposition (default = FALSE) |
| bool | $cache | Instruct clients and/or proxies to cache the response for 24h (default = TRUE) |
| bool | $deleteafter | Delete the $filename file when done (default = FALSE) |
Definition at line 225 of file Lib.Http.php.
| PrintAllHttpVars | ( | ) |
Definition at line 276 of file Lib.Http.php.
| Redirect | ( | $action, | |
| $appname, | |||
| $actionname, | |||
$otherurl = "", |
|||
$httpparamredirect = false |
|||
| ) |
| Action | Application | $action | |
| string | $appname | |
| string | $actionname | |
| string | $otherurl | |
| bool | $httpparamredirect |
PhpUndefinedNamespaceInspection
PhpUndefinedClassInspection
Definition at line 21 of file Lib.Http.php.
| redirectAsGuest | ( | Action & | $action | ) |
if in useIndexAsGuest mode redirect with authtication to current url only if it is anonymous also
| Action | $action |
Definition at line 104 of file Lib.Http.php.
Here is the call graph for this function:| RedirectSender | ( | Action & | $action | ) |
| setHeaderCache | ( | $mime = "text/css" | ) |
| SetHttpVar | ( | $name, | |
| $def | |||
| ) |
Definition at line 150 of file Lib.Http.php.