Function __global->video_get_defaults__post
Definitions
sources/galleries2.php
- Get video details from POST environment and details/metadata.
- 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 video (blank: not known yet, calculate here if possible) |
| $thumb_url | URLPATH | No | No | Blank (empty string) | N/A | N/A | URL to the thumbnail image (blank: not known yet, calculate here if possible) |
| $filename | ?string | No | No | Null | N/A | N/A | Filename of video (null: not known yet, calculate here if possible) |
| $video_width | ?integer | No | No | Null | N/A | N/A | Video width (null: not known yet, calculate here if possible) |
| $video_height | ?integer | No | No | Null | N/A | N/A | Video height (null: not known yet, calculate here if possible) |
| $video_length | ?integer | No | No | Null | N/A | N/A | Video length (null: not known yet, calculate here if possible) |
| $closed_captions_url | URLPATH | No | No | Blank (empty string) | N/A | N/A | Video width (blank: not known yet, calculate here if possible) |
| $title | string | No | No | Blank (empty string) | N/A | N/A | Title of video (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 video details
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get video details from POST environment and details/metadata.
*
* @param boolean $is_edit Whether this is for an edit operation
* @param URLPATH $url URL to the video (blank: not known yet, calculate here if possible)
* @param URLPATH $thumb_url URL to the thumbnail image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of video (null: not known yet, calculate here if possible)
* @param ?integer $video_width Video width (null: not known yet, calculate here if possible)
* @param ?integer $video_height Video height (null: not known yet, calculate here if possible)
* @param ?integer $video_length Video length (null: not known yet, calculate here if possible)
* @param URLPATH $closed_captions_url Video width (blank: not known yet, calculate here if possible)
* @param string $title Title of video (blank: not known yet, calculate here if possible)
* @param string $cat Gallery (blank: not known yet, calculate here if possible)
* @return array Tuple of video details
*/
function video_get_defaults__post(bool $is_edit = false, string $url = '', string $thumb_url = '', ?string $filename = null, ?int $video_width = null, ?int $video_height = null, ?int $video_length = null, string $closed_captions_url = '', string $title = '', string $cat = '') : array
* Get video details from POST environment and details/metadata.
*
* @param boolean $is_edit Whether this is for an edit operation
* @param URLPATH $url URL to the video (blank: not known yet, calculate here if possible)
* @param URLPATH $thumb_url URL to the thumbnail image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of video (null: not known yet, calculate here if possible)
* @param ?integer $video_width Video width (null: not known yet, calculate here if possible)
* @param ?integer $video_height Video height (null: not known yet, calculate here if possible)
* @param ?integer $video_length Video length (null: not known yet, calculate here if possible)
* @param URLPATH $closed_captions_url Video width (blank: not known yet, calculate here if possible)
* @param string $title Title of video (blank: not known yet, calculate here if possible)
* @param string $cat Gallery (blank: not known yet, calculate here if possible)
* @return array Tuple of video details
*/
function video_get_defaults__post(bool $is_edit = false, string $url = '', string $thumb_url = '', ?string $filename = null, ?int $video_width = null, ?int $video_height = null, ?int $video_length = null, string $closed_captions_url = '', string $title = '', string $cat = '') : array

