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)

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: