- Publicity: Public Only All
rss-utilities-procs.tcl
RSS support procs
- Location:
- packages/rss-support/tcl/rss-utilities-procs.tcl
- Created:
- Fri Oct 26 11:43:26 2001
- Authors:
- Andrew Grumet <aegrumet@alum.mit.edu>
- Jerry Asher <jerry@theashergroup.com>
- Dave Bauer <dave@thedesignexperience.org>
- CVS Identification:
$Id: rss-utilities-procs.tcl,v 1.6.2.1 2021/10/21 11:48:31 antoniop Exp $
Procedures in this file
- rss_first_url_for_package_id (public)
- rss_package_id (public)
- rss_package_url (public)
Detailed information
rss_first_url_for_package_id (public)
rss_first_url_for_package_id package_id
Finds the first site node (ordered by node_id) associated with package_id and returns the relative url for that node. Returns empty string if the package is not mounted.
- Parameters:
- package_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
rss_package_id (public)
rss_package_id
# Returns the package_id for rss if it is rss is mounted. # Returns 0 otherwise.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
rss_package_url (public)
rss_package_url
# Returns the rss package url if it is mounted. # Returns the empty string otherwise.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Content File Source
ad_library { RSS support procs @author Andrew Grumet (aegrumet@alum.mit.edu) @author Jerry Asher (jerry@theashergroup.com) @author Dave Bauer (dave@thedesignexperience.org) @creation-date Fri Oct 26 11:43:26 2001 @cvs-id $Id: rss-utilities-procs.tcl,v 1.6.2.1 2021/10/21 11:48:31 antoniop Exp $ } ad_proc -public rss_package_id {} { <pre> # Returns the package_id for rss if it is rss is mounted. # Returns 0 otherwise. </pre> } { if {![db_0or1row get_package_id {}]} { return 0 } else { return $package_id } } ad_proc -public rss_package_url {} { <pre> # Returns the rss package url if it is mounted. # Returns the empty string otherwise. </pre> } { set package_id [rss_package_id] return [db_string rss_url {} -default ""] } d_proc -public rss_first_url_for_package_id { package_id } { Finds the first site node (ordered by node_id) associated with package_id and returns the relative url for that node. Returns empty string if the package is not mounted. } { return [lindex [site_node::get_url_from_object_id -object_id $package_id] 0] } # Local variables: # mode: tcl # tcl-indent-level: 4 # indent-tabs-mode: nil # End: