pa_all_photos_on_page (public)

 pa_all_photos_on_page album_id page

Defined in packages/photo-album/tcl/photo-album-procs.tcl

returns a list of the photo_ids on page page of album_id list is in ascending order

Parameters:
album_id (required)
page (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/photo-album/www/album.tcl packages/photo-album/ www/album.tcl pa_all_photos_on_page pa_all_photos_on_page packages/photo-album/www/album.tcl->pa_all_photos_on_page packages/photo-album/www/photos-edit.tcl packages/photo-album/ www/photos-edit.tcl packages/photo-album/www/photos-edit.tcl->pa_all_photos_on_page pa_all_photos_in_album pa_all_photos_in_album (public) pa_all_photos_on_page->pa_all_photos_in_album parameter::get parameter::get (public) pa_all_photos_on_page->parameter::get

Testcases:
No testcase defined.
Source code:
    set images_per_page [parameter::get -parameter ThumbnailsPerPage]
    set start_index [expr {$images_per_page * ($page-1)}]
    set end_index [expr {$start_index + ($images_per_page - 1)}]
    return [lrange [pa_all_photos_in_album $album_id$start_index $end_index]
Generic XQL file:
packages/photo-album/tcl/photo-album-procs.xql

PostgreSQL XQL file:
packages/photo-album/tcl/photo-album-procs-postgresql.xql

Oracle XQL file:
packages/photo-album/tcl/photo-album-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: