pa_page_of_photo_in_album (public)

 pa_page_of_photo_in_album photo_id album_id

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

returns the page number of a photo in an album If photo is not in the album returns -1

Parameters:
photo_id (required)
album_id (required)

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

Testcases:
No testcase defined.
Source code:
    set photo_index [lsearch [pa_all_photos_in_album $album_id$photo_id]

    if {$photo_index == -1 } {
    return -1
    }

    return [expr int(ceil(($photo_index + 1)/ [parameter::get -parameter ThumbnailsPerPage].0))]
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: