Function __global->edit_video

Definitions

sources/galleries2.php

  • Edit a video in a specified gallery.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id AUTO_LINK No No required parameter N/A N/A The ID of the entry to edit
$title SHORT_TEXT No No required parameter N/A N/A Video title
$cat ID_TEXT No No required parameter N/A N/A The gallery name
$description LONG_TEXT No No required parameter N/A N/A The video description
$url URLPATH No No required parameter N/A N/A The URL to the actual video
$thumb_url URLPATH No No required parameter N/A N/A The URL to the thumbnail of the actual video
$validated BINARY No No required parameter N/A N/A Whether the video has been validated for display on the site
$allow_rating BINARY No No required parameter N/A N/A Whether the video may be rated
$allow_comments SHORT_INTEGER No No required parameter N/A N/A Whether the video may be commented upon
$allow_trackbacks BINARY No No required parameter N/A N/A Whether the video may be trackbacked
$notes LONG_TEXT No No required parameter N/A N/A Hidden notes associated with the video
$video_length integer No No required parameter N/A N/A The length of the video
$video_width integer No No required parameter N/A N/A The width of the video
$video_height integer No No required parameter N/A N/A The height of the video
$meta_keywords SHORT_TEXT No No required parameter N/A N/A Meta keywords
$meta_description LONG_TEXT No No required parameter N/A N/A Meta description
$closed_captions_url ?URLPATH No No Null N/A N/A The URL to the closed captions for this video (null: do not change)
$edit_time ?TIME No No Null N/A N/A Edit time (null: either means current time, or if $null_is_literal, means reset to to null)
$add_time ?TIME No No Null N/A N/A Add time (null: do not change)
$views ?integer No No Null N/A N/A Number of views (null: do not change)
$submitter ?MEMBER No No Null N/A N/A Submitter (null: do not change)
$regions array No No [] N/A N/A The regions (empty: not region-limited)
$null_is_literal boolean No No False N/A N/A Determines whether some nulls passed mean 'use a default' or literally mean 'set to null'

Preview

Code (PHP)

/**
 * Edit a video in a specified gallery.
 *
 * @param  AUTO_LINK $id The ID of the entry to edit
 * @param  SHORT_TEXT $title Video title
 * @param  ID_TEXT $cat The gallery name
 * @param  LONG_TEXT $description The video description
 * @param  URLPATH $url The URL to the actual video
 * @param  URLPATH $thumb_url The URL to the thumbnail of the actual video
 * @param  BINARY $validated Whether the video has been validated for display on the site
 * @param  BINARY $allow_rating Whether the video may be rated
 * @param  SHORT_INTEGER $allow_comments Whether the video may be commented upon
 * @param  BINARY $allow_trackbacks Whether the video may be trackbacked
 * @param  LONG_TEXT $notes Hidden notes associated with the video
 * @param  integer $video_length The length of the video
 * @param  integer $video_width The width of the video
 * @param  integer $video_height The height of the video
 * @param  SHORT_TEXT $meta_keywords Meta keywords
 * @param  LONG_TEXT $meta_description Meta description
 * @param  ?URLPATH $closed_captions_url The URL to the closed captions for this video (null: do not change)
 * @param  ?TIME $edit_time Edit time (null: either means current time, or if $null_is_literal, means reset to to null)
 * @param  ?TIME $add_time Add time (null: do not change)
 * @param  ?integer $views Number of views (null: do not change)
 * @param  ?MEMBER $submitter Submitter (null: do not change)
 * @param  array $regions The regions (empty: not region-limited)
 * @param  boolean $null_is_literal Determines whether some nulls passed mean 'use a default' or literally mean 'set to null'
 */

function edit_video(int $id, string $title, string $cat, string $description, string $url, string $thumb_url, int $validated, int $allow_rating, int $allow_comments, int $allow_trackbacks, string $notes, int $video_length, int $video_width, int $video_height, string $meta_keywords, string $meta_description, ?string $closed_captions_url = null, ?int $edit_time = null, ?int $add_time = null, ?int $views = null, ?int $submitter = null, array $regions = [], bool $null_is_literal = false)