pa_get_root_folder (public)

 pa_get_root_folder [ package_id ]

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

Returns the folder_id of the root folder for an instance of the photo album system. If no root folder exists, as when a new package instance is accessed for the first time, a new root folder is created automatically with appropriate permissions If value has be previously requested, value pulled from cache

Parameters:
package_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 pa_context_bar_list pa_context_bar_list (public) pa_get_root_folder pa_get_root_folder pa_context_bar_list->pa_get_root_folder pa_is_type_in_package pa_is_type_in_package (private) pa_is_type_in_package->pa_get_root_folder packages/photo-album/www/album-chunk.tcl packages/photo-album/ www/album-chunk.tcl packages/photo-album/www/album-chunk.tcl->pa_get_root_folder packages/photo-album/www/album-move.tcl packages/photo-album/ www/album-move.tcl packages/photo-album/www/album-move.tcl->pa_get_root_folder packages/photo-album/www/folder-delete.tcl packages/photo-album/ www/folder-delete.tcl packages/photo-album/www/folder-delete.tcl->pa_get_root_folder ad_conn ad_conn (public) pa_get_root_folder->ad_conn util_memoize util_memoize (public) pa_get_root_folder->util_memoize

Testcases:
No testcase defined.
Source code:
 
    if {$package_id eq ""} {
    set package_id [ad_conn package_id]
    }
    return [util_memoize "pa_get_root_folder_internal $package_id"]
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: