Function __global->image_get_defaults__post
Definitions
sources/galleries2.php
- Get image details from POST environment and details/metadata.Allows required fields to be found in metadata before an error is raised.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $is_edit | boolean | No | No | False | N/A | N/A | Whether this is for an edit operation |
| $url | URLPATH | No | No | Blank (empty string) | N/A | N/A | URL to the image (blank: not known yet, calculate here if possible) |
| $filename | ?string | No | No | Null | N/A | N/A | Filename of image (null: not known yet, calculate here if possible) |
| $title | string | No | No | Blank (empty string) | N/A | N/A | Title of image (blank: not known yet, calculate here if possible) |
| $cat | string | No | No | Blank (empty string) | N/A | N/A | Gallery (blank: not known yet, calculate here if possible) |
Returns
- Tuple of image details
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get image details from POST environment and details/metadata.Allows required fields to be found in metadata before an error is raised.
*
* @param boolean $is_edit Whether this is for an edit operation
* @param URLPATH $url URL to the image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of image (null: not known yet, calculate here if possible)
* @param string $title Title of image (blank: not known yet, calculate here if possible)
* @param string $cat Gallery (blank: not known yet, calculate here if possible)
* @return array Tuple of image details
*/
function image_get_defaults__post(bool $is_edit = false, string $url = '', ?string $filename = null, string $title = '', string $cat = '') : array
* Get image details from POST environment and details/metadata.Allows required fields to be found in metadata before an error is raised.
*
* @param boolean $is_edit Whether this is for an edit operation
* @param URLPATH $url URL to the image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of image (null: not known yet, calculate here if possible)
* @param string $title Title of image (blank: not known yet, calculate here if possible)
* @param string $cat Gallery (blank: not known yet, calculate here if possible)
* @return array Tuple of image details
*/
function image_get_defaults__post(bool $is_edit = false, string $url = '', ?string $filename = null, string $title = '', string $cat = '') : array

