Class Module_galleries

Description

Module page class.

Located in /site/pages/modules/galleries.php (line 24)


	
			
Method Summary
tempcode do_gallery ()
tempcode do_gallery_flow_mode (tempcode $rating_details, tempcode $comment_details, ID_TEXT $cat, ID_TEXT $root, tempcode $description, tempcode $children, boolean $may_download, tempcode $edit_url, tempcode $add_gallery_url, tempcode $submit_image_url, tempcode $submit_video_url, tempcode $title, URLPATH $rep_image, integer $start, integer $max, integer $num_galleries)
tempcode do_gallery_regular_mode (tempcode $rating_details, tempcode $comment_details, ID_TEXT $cat, ID_TEXT $root, tempcode $description, tempcode $children, boolean $may_download, tempcode $edit_url, tempcode $add_gallery_url, tempcode $submit_image_url, tempcode $submit_video_url, tempcode $title)
array extract_page_link_permissions (string $page_link)
?array get_entry_points ()
?array get_page_links ([?integer $max_depth = NULL], [boolean $require_permission_support = false], [?string $start_at = NULL], [boolean $dont_care_about_categories = false])
void get_sitemap_pagelinks (string $callback, MEMBER $member_id, integer $depth, string $pagelink_stub, [?string $parent_pagelink = NULL], [integer $recurse_level = 0], [?array $category_data = NULL], [?array $image_data = NULL], [?array $video_data = NULL])
?array info ()
void install ([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
tempcode list_galleries ()
tempcode run ()
tempcode show_image ()
tempcode show_nav (tempcode $category_name, ID_TEXT $cat, AUTO_LINK $current_id, ?AUTO_LINK $back_id, ?AUTO_LINK $forward_id, ID_TEXT $root, integer $x, integer $n)
tempcode show_video ()
void uninstall ()
Methods
do_gallery (line 466)

The UI to show a gallery.

  • return: The UI
tempcode do_gallery ()
do_gallery_flow_mode (line 617)

The UI for a "flow mode" gallery.

  • return: The UI
tempcode do_gallery_flow_mode (tempcode $rating_details, tempcode $comment_details, ID_TEXT $cat, ID_TEXT $root, tempcode $description, tempcode $children, boolean $may_download, tempcode $edit_url, tempcode $add_gallery_url, tempcode $submit_image_url, tempcode $submit_video_url, tempcode $title, URLPATH $rep_image, integer $start, integer $max, integer $num_galleries)
  • tempcode $rating_details: Rating area
  • tempcode $comment_details: Commenting area
  • ID_TEXT $cat: Our gallery ID
  • ID_TEXT $root: Virtual root gallery
  • tempcode $description: The description of the gallery
  • tempcode $children: The tempcode for our visible child galleries
  • boolean $may_download: Whether may "download this gallery"
  • tempcode $edit_url: The URL to "edit this gallery"
  • tempcode $add_gallery_url: The URL to "add a gallery"
  • tempcode $submit_image_url: The URL to "submit an image to this gallery"
  • tempcode $submit_video_url: The URL to "submit a video to this gallery"
  • tempcode $title: The title of the page (our of get_page_title)
  • URLPATH $rep_image: The representative image for the gallery
  • integer $start: The start position we are in browsing through child galleries
  • integer $max: The maximum number of child galleries we can display per page
  • integer $num_galleries: The number of child galleries we have
do_gallery_regular_mode (line 869)

The UI for an "regular mode" gallery.

  • return: The UI
tempcode do_gallery_regular_mode (tempcode $rating_details, tempcode $comment_details, ID_TEXT $cat, ID_TEXT $root, tempcode $description, tempcode $children, boolean $may_download, tempcode $edit_url, tempcode $add_gallery_url, tempcode $submit_image_url, tempcode $submit_video_url, tempcode $title)
  • tempcode $rating_details: Rating area
  • tempcode $comment_details: Commenting area
  • ID_TEXT $cat: Our gallery ID
  • ID_TEXT $root: Virtual root gallery
  • tempcode $description: The description of the gallery
  • tempcode $children: The tempcode for our visible child galleries
  • boolean $may_download: Whether may "download this gallery"
  • tempcode $edit_url: The URL to "edit this gallery"
  • tempcode $add_gallery_url: The URL to "add a gallery"
  • tempcode $submit_image_url: The URL to "submit an image to this gallery"
  • tempcode $submit_video_url: The URL to "submit a video to this gallery"
  • tempcode $title: The title of the page (our of get_page_title)
extract_page_link_permissions (line 391)

Convert a page link to a category ID and category permission module type.

  • return: The pair
array extract_page_link_permissions (string $page_link)
  • string $page_link: The page link
get_entry_points (line 256)

Standard modular entry-point finder function.

  • return: A map of entry points (type-code=>language-code) (NULL: disabled).
?array get_entry_points ()
get_page_links (line 270)

Standard modular page-link finder function (does not return the main entry-points that are not inside the tree).

  • return: A tuple: 1) full tree structure [made up of (pagelink, permission-module, permissions-id, title, children, ?entry point for the children, ?children permission module, ?whether there are children) OR a list of maps from a get_* function] 2) permissions-page 3) optional base entry-point for the tree 4) optional permission-module 5) optional permissions-id (NULL: disabled).
?array get_page_links ([?integer $max_depth = NULL], [boolean $require_permission_support = false], [?string $start_at = NULL], [boolean $dont_care_about_categories = false])
  • ?integer $max_depth: The number of tree levels to computer (NULL: no limit)
  • boolean $require_permission_support: Whether to not return stuff that does not support permissions (unless it is underneath something that does).
  • ?string $start_at: Position to start at in the tree. Does not need to be respected. (NULL: from root)
  • boolean $dont_care_about_categories: Whether to avoid returning categories.
get_sitemap_pagelinks (line 303)

Standard modular new-style deep page-link finder function (does not return the main entry-points).

void get_sitemap_pagelinks (string $callback, MEMBER $member_id, integer $depth, string $pagelink_stub, [?string $parent_pagelink = NULL], [integer $recurse_level = 0], [?array $category_data = NULL], [?array $image_data = NULL], [?array $video_data = NULL])
  • string $callback: Callback function to send discovered page-links to.
  • MEMBER $member_id: The member we are finding stuff for (we only find what the member can view).
  • integer $depth: Code for how deep we are tunnelling down, in terms of whether we are getting entries as well as categories.
  • string $pagelink_stub: Stub used to create page-links. This is passed in because we don't want to assume a zone or page name within this function.
  • ?string $parent_pagelink: Where we're looking under (NULL: root of tree). We typically will NOT show a root node as there's often already an entry-point representing it.
  • integer $recurse_level: Our recursion depth (used to calculate importance of page-link, used for instance by Google sitemap). Deeper is typically less important.
  • ?array $category_data: Non-standard for API [extra parameter tacked on] (NULL: yet unknown). Contents of database table for performance.
  • ?array $image_data: Non-standard for API [extra parameter tacked on] (NULL: yet unknown). Contents of database table for performance.
  • ?array $video_data: Non-standard for API [extra parameter tacked on] (NULL: yet unknown). Contents of database table for performance.
info (line 32)

Standard modular info function.

  • return: Map of module info (NULL: module is disabled).
?array info ()
install (line 97)

Standard modular install function.

void install ([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
  • ?integer $upgrade_from: What version we're upgrading from (NULL: new install)
  • ?integer $upgrade_from_hack: What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
list_galleries (line 425)

The UI to list all galleries for browsing.

  • return: The UI
tempcode list_galleries ()
run (line 403)

Standard modular run function.

  • return: The result of execution.
tempcode run ()
show_image (line 955)

The UI to show an image.

  • return: The UI
tempcode show_image ()
show_nav (line 1211)

Show gallery navigation bits used when viewing images/videos.

  • return: The navigation bits
tempcode show_nav (tempcode $category_name, ID_TEXT $cat, AUTO_LINK $current_id, ?AUTO_LINK $back_id, ?AUTO_LINK $forward_id, ID_TEXT $root, integer $x, integer $n)
  • tempcode $category_name: The actual title for the gallery we are using
  • ID_TEXT $cat: The gallery we are using
  • AUTO_LINK $current_id: The ID of the current entry of the type we are browsing in the gallery we are using
  • ?AUTO_LINK $back_id: The ID of the previous entry of the type we are browsing in the gallery we are using (NULL: no previous)
  • ?AUTO_LINK $forward_id: As above, except next entry (NULL: no next)
  • ID_TEXT $root: The root gallery (the gallery we are considering as an adhoc root, to allow gallery splitting-up)
  • integer $x: Position in collection
  • integer $n: Total in collection
show_video (line 1064)

The UI to show a video.

  • return: The UI
tempcode show_video ()
uninstall (line 48)

Standard modular uninstall function.

void uninstall ()

Documentation generated on Sun, 02 Jan 2011 23:15:21 +0000 by phpDocumentor 1.4.3