add_gallery
add_image
add_video
can_submit_to_gallery
constrain_gallery_image_to_max_size
create_selection_list_gallery_content_tree
create_selection_list_gallery_tree
create_video_thumb
delete_gallery
delete_image
delete_video
download_gallery_script
edit_gallery
edit_image
edit_video
gallery_breadcrumbs
gallery_has_content
get_default_gallery_max
get_gallery_content_tree
get_gallery_tree
get_member_id_from_gallery_name
get_potential_gallery_title
get_recursive_gallery_details
get_video_details
make_member_gallery_if_needed
only_conventional_galleries
only_download_galleries
only_galleries_accepting_media
only_member_galleries_of_id
read_intel_endian_int
read_network_endian_int
render_gallery_box
render_image_box
render_video_box
show_gallery_video_media
show_video_details
store_transcoding_failure
store_transcoding_success
transcode_video
watermark_gallery_image
zencoder_receive_script
GETID3_HELPERAPPSDIR
add_gallery(\ID_TEXT $name, \SHORT_TEXT $fullname, \LONG_TEXT $description, \LONG_TEXT $notes, \ID_TEXT $parent_id, \BINARY $accept_images= 1, \BINARY $accept_videos= 1, \BINARY $is_member_synched= 0, \BINARY $flow_mode_interface= 0, \URLPATH $rep_image= '', \URLPATH $watermark_top_left= '', \URLPATH $watermark_top_right= '', \URLPATH $watermark_bottom_left= '', \URLPATH $watermark_bottom_right= '', \BINARY $allow_rating= 1, \BINARY $allow_comments= 1, boolean $skip_exists_check= false, \?TIME $add_date= null, \?MEMBER $g_owner= null, \?SHORT_TEXT $meta_keywords= '', \?LONG_TEXT $meta_description= '', boolean $uniqify= false) : \ID_TEXT
| package | galleries |
|---|
\ID_TEXTThe gallery codename
\SHORT_TEXTThe full human-readeable name of the gallery
\LONG_TEXTThe description of the gallery
\LONG_TEXTHidden notes associated with the gallery
\ID_TEXTThe parent gallery (blank: no parent)
\BINARYWhether images may be put in this gallery
\BINARYWhether videos may be put in this gallery
\BINARYWhether the gallery serves as a container for automatically created member galleries
\BINARYWhether the gallery uses the flow mode interface
\URLPATHThe representative image of the gallery (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\BINARYWhether rating are allowed
\BINARYWhether comments are allowed
booleanWhether to skip the check for whether the gallery exists (useful for importers)
\?TIMEThe add time (null: now)
\?MEMBERThe gallery owner (null: nobody)
\?SHORT_TEXTMeta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXTMeta description for this resource (null: do not edit) (blank: implicit)
booleanWhether to force the name as unique, if there's a conflict
\ID_TEXTThe nameadd_image(\SHORT_TEXT $title, \ID_TEXT $cat, \LONG_TEXT $description, \URLPATH $url, \URLPATH $thumb_url, \BINARY $validated, \BINARY $allow_rating, \BINARY $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, \?MEMBER $submitter= null, \?TIME $add_date= null, \?TIME $edit_date= null, integer $views= 0, \?AUTO_LINK $id= null, \?SHORT_TEXT $meta_keywords= '', \?LONG_TEXT $meta_description= '') : \AUTO_LINK
| package | galleries |
|---|
\SHORT_TEXTImage title
\ID_TEXTThe gallery name
\LONG_TEXTThe image description
\URLPATHThe URL to the actual image
\URLPATHThe URL to the thumbnail of the actual image
\BINARYWhether the image has been validated for display on the site
\BINARYWhether the image may be rated
\BINARYWhether the image may be commented upon
\BINARYWhether the image may be trackbacked
\LONG_TEXTHidden notes associated with the image
\?MEMBERThe submitter (null: current member)
\?TIMEThe time of adding (null: now)
\?TIMEThe time of editing (null: never)
integerThe number of views
\?AUTO_LINKForce an ID (null: don't force an ID)
\?SHORT_TEXTMeta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXTMeta description for this resource (null: do not edit) (blank: implicit)
\AUTO_LINKThe ID of the new entryadd_video(\SHORT_TEXT $title, \ID_TEXT $cat, \LONG_TEXT $description, \URLPATH $url, \URLPATH $thumb_url, \BINARY $validated, \BINARY $allow_rating, \BINARY $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, integer $video_length, integer $video_width, integer $video_height, \?MEMBER $submitter= null, \?TIME $add_date= null, \?TIME $edit_date= null, integer $views= 0, \?AUTO_LINK $id= null, \?SHORT_TEXT $meta_keywords= '', \?LONG_TEXT $meta_description= '') : \AUTO_LINK
| package | galleries |
|---|
\SHORT_TEXTVideo title
\ID_TEXTThe gallery name
\LONG_TEXTThe video description
\URLPATHThe URL to the actual video
\URLPATHThe URL to the thumbnail of the actual video
\BINARYWhether the video has been validated for display on the site
\BINARYWhether the video may be rated
\BINARYWhether the video may be commented upon
\BINARYWhether the video may be trackbacked
\LONG_TEXTHidden notes associated with the video
integerThe length of the video
integerThe width of the video
integerThe height of the video
\?MEMBERThe submitter (null: current member)
\?TIMEThe time of adding (null: now)
\?TIMEThe time of editing (null: never)
integerThe number of views
\?AUTO_LINKForce an ID (null: don't force an ID)
\?SHORT_TEXTMeta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXTMeta description for this resource (null: do not edit) (blank: implicit)
\AUTO_LINKThe ID of the new entrycan_submit_to_gallery(\ID_TEXT $name) : \~integer
| package | galleries |
|---|
\ID_TEXTThe gallery name
\~integerThe owner of the gallery (false: we aren't allowed to submit to it) (-2: not a member gallery)constrain_gallery_image_to_max_size(\PATH $file_path, string $filename, integer $box_width)
| package | galleries |
|---|
\PATHThe path to the image file
stringThe original filename of the image
integerThe box width
create_selection_list_gallery_content_tree(\ID_TEXT $table, \?ID_TEXT $it= null, \?AUTO_LINK $submitter= null, boolean $use_compound_list= false, boolean $editable_filter= false) : \Tempcode
| package | galleries |
|---|---|
| set | images videos |
\ID_TEXTThe table we are working with
\?ID_TEXTThe currently selected entry (null: none selected)
\?AUTO_LINKOnly show images/videos submitted by this member (null: no filter)
booleanWhether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
booleanWhether to only show for what may be edited by the current member
\TempcodeThe list of entriescreate_selection_list_gallery_tree(\?ID_TEXT $it= null, \?string $filter= null, boolean $must_accept_images= false, boolean $must_accept_videos= false, boolean $purity= false, boolean $use_compound_list= false, \?MEMBER $member_id= null, boolean $addable_filter= false, boolean $editable_filter= false, \?TIME $updated_since= null) : \Tempcode
..)galleries.
| package | galleries |
|---|
\?ID_TEXTThe gallery to select by default (null: no specific default)
\?stringA function name to filter galleries with (null: no filter)
booleanWhether displayed galleries must support images
booleanWhether displayed galleries must support videos
booleanWhether to NOT show member galleries that do not exist yet
booleanWhether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
\?MEMBERMember we are filtering for (null: not needed)
booleanWhether to only show for what may be added to by the current member
booleanWhether to only show for what may be edited by the current member
\?TIMETime from which content must be updated (null: no limit).
\TempcodeThe tree listcreate_video_thumb(\URLPATH $src_url, \?PATH $expected_output_path = null) : \URLPATH
| package | galleries |
|---|
\URLPATHVideo to get thumbail from (must be local)
\?PATHWhere to save to (null: decide for ourselves)
\URLPATHThumbnail, only valid if expected_output_path was passed as NULL (blank: could not generate)delete_gallery(\ID_TEXT $name)
delete_image(\AUTO_LINK $id, boolean $delete_full = true)
| package | galleries |
|---|
\AUTO_LINKThe ID of the image
booleanWhether to delete the actual file also
delete_video(\AUTO_LINK $id, boolean $delete_full = true)
| package | galleries |
|---|
\AUTO_LINKThe ID of the entry to delete
booleanWhether to delete the actual video file from disk as well as the entry
download_gallery_script()
| package | galleries |
|---|
edit_gallery(\ID_TEXT $old_name, \ID_TEXT $name, \SHORT_TEXT $fullname, \LONG_TEXT $description, \LONG_TEXT $notes, \?ID_TEXT $parent_id= null, \BINARY $accept_images= 1, \BINARY $accept_videos= 1, \BINARY $is_member_synched= 0, \BINARY $flow_mode_interface= 0, \URLPATH $rep_image= '', \URLPATH $watermark_top_left= '', \URLPATH $watermark_top_right= '', \URLPATH $watermark_bottom_left= '', \URLPATH $watermark_bottom_right= '', \?SHORT_TEXT $meta_keywords= null, \?LONG_TEXT $meta_description= null, \BINARY $allow_rating= 1, \BINARY $allow_comments= 1, \?MEMBER $g_owner= null, \?TIME $add_time= null, boolean $null_is_literal= false, boolean $uniqify= false) : \ID_TEXT
| package | galleries |
|---|
\ID_TEXTThe old gallery codename (in case we are renaming)
\ID_TEXTThe gallery codename (maybe the same as the old one)
\SHORT_TEXTThe full human-readeable name of the gallery
\LONG_TEXTThe description of the gallery
\LONG_TEXTHidden notes associated with the gallery
\?ID_TEXTThe parent gallery (null: no parent)
\BINARYWhether images may be put in this gallery
\BINARYWhether videos may be put in this gallery
\BINARYWhether the gallery serves as a container for automatically created member galleries
\BINARYWhether the gallery uses the flow mode interface
\URLPATHThe representative image of the gallery (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\URLPATHWatermark (blank: none)
\?SHORT_TEXTMeta keywords for this resource (null: do not edit)
\?LONG_TEXTMeta description for this resource (null: do not edit)
\BINARYWhether rating are allowed
\BINARYWhether comments are allowed
\?MEMBERThe gallery owner (null: nobody)
\?TIMEThe add time (null: now)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
booleanWhether to force the name as unique, if there's a conflict
\ID_TEXTThe nameedit_image(\AUTO_LINK $id, \SHORT_TEXT $title, \ID_TEXT $cat, \LONG_TEXT $description, \URLPATH $url, \URLPATH $thumb_url, \BINARY $validated, \BINARY $allow_rating, \BINARY $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, \SHORT_TEXT $meta_keywords, \LONG_TEXT $meta_description, \?TIME $edit_time= null, \?TIME $add_time= null, \?integer $views= null, \?MEMBER $submitter= null, boolean $null_is_literal= false)
| package | galleries |
|---|
\AUTO_LINKThe ID of the image to edit
\SHORT_TEXTImage title
\ID_TEXTThe gallery name
\LONG_TEXTThe image description
\URLPATHThe URL to the actual image
\URLPATHThe URL to the thumbnail of the actual image
\BINARYWhether the image has been validated for display on the site
\BINARYWhether the image may be rated
\BINARYWhether the image may be commented upon
\BINARYWhether the image may be trackbacked
\LONG_TEXTHidden notes associated with the image
\SHORT_TEXTMeta keywords
\LONG_TEXTMeta description
\?TIMEEdit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIMEAdd time (null: do not change)
\?integerNumber of views (null: do not change)
\?MEMBERSubmitter (null: do not change)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
edit_video(\AUTO_LINK $id, \SHORT_TEXT $title, \ID_TEXT $cat, \LONG_TEXT $description, \URLPATH $url, \URLPATH $thumb_url, \BINARY $validated, \BINARY $allow_rating, \BINARY $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, integer $video_length, integer $video_width, integer $video_height, \SHORT_TEXT $meta_keywords, \LONG_TEXT $meta_description, \?TIME $edit_time= null, \?TIME $add_time= null, \?integer $views= null, \?MEMBER $submitter= null, boolean $null_is_literal= false)
| package | galleries |
|---|
\AUTO_LINKThe ID of the entry to edit
\SHORT_TEXTVideo title
\ID_TEXTThe gallery name
\LONG_TEXTThe video description
\URLPATHThe URL to the actual video
\URLPATHThe URL to the thumbnail of the actual video
\BINARYWhether the video has been validated for display on the site
\BINARYWhether the video may be rated
\BINARYWhether the video may be commented upon
\BINARYWhether the video may be trackbacked
\LONG_TEXTHidden notes associated with the video
integerThe length of the video
integerThe width of the video
integerThe height of the video
\SHORT_TEXTMeta keywords
\LONG_TEXTMeta description
\?TIMEEdit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIMEAdd time (null: do not change)
\?integerNumber of views (null: do not change)
\?MEMBERSubmitter (null: do not change)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
gallery_has_content(\ID_TEXT $name) : boolean
get_default_gallery_max() : integer
get_gallery_content_tree(\ID_TEXT $table, \?AUTO_LINK $submitter= null, \?ID_TEXT $gallery= null, \?string $breadcrumbs= null, \?ID_TEXT $title= null, \?integer $levels= null, boolean $use_compound_list= false, boolean $editable_filter= false) : array
| package | galleries |
|---|---|
| set | images videos |
\ID_TEXTThe table we are working with
\?AUTO_LINKOnly show images/videos submitted by this member (null: no filter)
\?ID_TEXTThe gallery being at the root of our recursion (null: true root)
\?stringThe breadcrumbs up to this point in the recursion (null: blank, as we are starting the recursion)
\?ID_TEXTThe name of the $gallery we are currently going through (null: look it up). This is here for efficiency reasons, as finding children IDs to recurse to also reveals the childs title
\?integerThe number of recursive levels to search (null: all)
booleanWhether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
booleanWhether to only show for what may be edited by the current member
arrayA list of maps for all galleries. Each map entry containins the fields 'id' (gallery ID) and 'breadcrumbs' (path to the category, including the categories own title), and more. Or if $use_compound_list, the tree structure built with pairs containing the compound list in addition to the child branchesget_gallery_tree(\?ID_TEXT $gallery= 'root', string $breadcrumbs= '', \?array $gallery_info= null, boolean $do_stats= false, \?string $filter= null, boolean $must_accept_images= false, boolean $must_accept_videos= false, boolean $purity= false, boolean $use_compound_list= false, \?integer $levels= null, \?MEMBER $member_id= null, boolean $addable_filter= false, boolean $editable_filter= false) : array
..)galleries.
| package | galleries |
|---|
\?ID_TEXTThe gallery we are getting the tree starting from (null: root)
stringThe parent breadcrumbs at this point of the recursion
\?arrayThe database row for the $gallery gallery (null: get it from the DB)
booleanWhether to include video/image statistics in the returned tree
\?stringA function name to filter galleries with (null: no filter)
booleanWhether displayed galleries must support images
booleanWhether displayed galleries must support videos
booleanWhether to NOT show member galleries that do not exist yet
booleanWhether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
\?integerThe number of recursive levels to search (null: all)
\?MEMBERMember we are filtering for (null: not needed)
booleanWhether to only show for what may be added to by the current member
booleanWhether to only show for what may be edited by the current member
arrayThe tree structure, or if $use_compound_list, the tree structure built with pairs containing the compound list in addition to the child branchesget_member_id_from_gallery_name(\ID_TEXT $gallery_name, \?array $row= null, boolean $only_if_personal_gallery= false) : \?MEMBER
| package | galleries |
|---|
\ID_TEXTThe name of the gallery
\?arrayGallery row (null: look it up)
booleanOnly non-NULL if it is a personal gallery
\?MEMBERThe owner of the gallery (null: not a member owned gallery)get_potential_gallery_title(\ID_TEXT $cat) : \?SHORT_TEXT
| package | galleries |
|---|
\ID_TEXTThe gallery codename
\?SHORT_TEXTThe gallery title (null: does not exist and won't be auto-created)get_recursive_gallery_details(\ID_TEXT $name, boolean $test_videos= true, boolean $test_images= true) : array
| package | galleries |
|---|
\ID_TEXTThe name of the gallery
booleanWhether to test for videos when making counts (ignore this parameter - used internally)
booleanWhether to test for images when making counts (ignore this parameter - used internally)
arrayA triplet: (num children, num images, num videos)get_video_details(\PATH $file_path, string $filename, boolean $delay_errors = false) : \~array
| package | galleries |
|---|
\PATHThe path to the video file
stringThe original filename of the video file (so we can find the file type from the file extension)
booleanWhether to skip over errored files instead of dying. We don't currently make use of this as our readers aren't sophisticard enough to properly spot erroneous situations.
\~arrayThe triplet of width/height/length (possibly containing NULL's for when we can't detect properties) (false: error)make_member_gallery_if_needed(\ID_TEXT $cat)
only_conventional_galleries(\ID_TEXT $cat) : boolean
| package | galleries |
|---|
\ID_TEXTThe gallery name
booleanWhether the gallery is NOT a download galleryonly_download_galleries(\ID_TEXT $cat) : boolean
| package | galleries |
|---|
\ID_TEXTThe gallery name
booleanWhether the gallery is a download galleryonly_galleries_accepting_media(\ID_TEXT $cat) : boolean
| package | galleries |
|---|
\ID_TEXTThe gallery name
booleanWhether the gallery accepts some mediaonly_member_galleries_of_id(\ID_TEXT $cat, \?MEMBER $member_id, integer $child_count) : boolean
| package | galleries |
|---|
\ID_TEXTThe gallery name
\?MEMBERMember we are filtering for (null: not needed)
integerThe number of children for this gallery
booleanThe answerread_intel_endian_int(string $buffer) : integer
read_network_endian_int(string $buffer) : integer
render_gallery_box(array $myrow, \ID_TEXT $root= 'root', boolean $show_member_stats_if_appropriate= false, \ID_TEXT $zone= '_SEARCH', boolean $quit_if_empty= true, boolean $preview= false, boolean $give_context= true, boolean $include_breadcrumbs= true, boolean $attach_to_url_filter= false, \ID_TEXT $guid= '') : \Tempcode
| package | galleries |
|---|
arrayThe database row of the gallery
\ID_TEXTThe virtual root of the gallery
booleanWhether to show member stats if it is a member owned gallery
\ID_TEXTThe zone that the gallery module we are linking to is in
booleanWhether to not show anything if the gallery is empty
booleanWhether only to show 'preview' details
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to include breadcrumbs (if there are any)
booleanWhether to copy through any filter parameters in the URL, under the basis that they are associated with what this box is browsing
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeThe previewrender_image_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $include_breadcrumbs= true, \?ID_TEXT $root= null, \ID_TEXT $guid= '') : \Tempcode
| package | galleries |
|---|
arrayThe image row
\ID_TEXTThe zone the galleries module is in
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to include breadcrumbs (if there are any)
\?ID_TEXTVirtual root to use (null: none)
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeThe rendered boxrender_video_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $include_breadcrumbs= true, \?ID_TEXT $root= null, \ID_TEXT $guid= '') : \Tempcode
| package | galleries |
|---|
arrayThe video row
\ID_TEXTThe zone the galleries module is in
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to include breadcrumbs (if there are any)
\?ID_TEXTVirtual root to use (null: none)
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeThe rendered boxshow_gallery_video_media(\URLPATH $url, \URLPATH $thumb_url, integer $width, integer $height, integer $length, \MEMBER $submitter) : \Tempcode
| package | galleries |
|---|
\URLPATHURL to media
\URLPATHURL to thumbnail
integerWidth
integerHeight
integerLength
\MEMBERThe entry submitter
\TempcodeDisplayed mediashow_video_details(array $myrow) : \Tempcode
store_transcoding_failure(\ID_TEXT $transcoder_id)
store_transcoding_success(\ID_TEXT $transcoder_id, \?URLPATH $new_url = null)
| package | galleries |
|---|
\ID_TEXTTranscoding ID
\?URLPATHTranscoded URL (null: Discerned using t_output_filename field, which we assume is where transcoder has copied file to)
transcode_video(\URLPATH $url, \?ID_TEXT $table, \?AUTO_LINK $local_id, \?ID_TEXT $local_id_field, \?ID_TEXT $url_field, \?ID_TEXT $orig_filename_field, \?ID_TEXT $width_field, \?ID_TEXT $height_field) : \URLPATH
| package | galleries |
|---|
\URLPATHURL of the video to be transcoded
\?ID_TEXTThe table we are saving into (null: don't save into DB)
\?AUTO_LINKThe ID of the video being transcoded (null: don't save into DB)
\?ID_TEXTName of the ID field in the table (null: don't save into DB)
\?ID_TEXTName of the URL field in the table (null: don't save into DB)
\?ID_TEXTName of the original filename field in the table (null: built into URL field)
\?ID_TEXTName of the width field in the table (null: none)
\?ID_TEXTName of the height field in the table (null: none)
\URLPATHTranscoded file (or original URL if no change was made)watermark_gallery_image(\ID_TEXT $gallery, \PATH $file_path, string $filename)
| package | galleries |
|---|
\ID_TEXTThe name of the gallery for the image
\PATHThe path to the image file
stringThe original file name of the image
zencoder_receive_script()
| package | galleries |
|---|
GETID3_HELPERAPPSDIR = get_file_base() . '/sources_custom/getid3/helperapps'
| package | galleries |
|---|