xowiki::notification::get_url (private)

 xowiki::notification::get_url id

Defined in packages/xowiki/tcl/notification-procs.tcl

Parameters:
id

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.notificationtype.geturl.xowiki_notif_type AcsSc.notificationtype.geturl.xowiki_notif_type (private) xowiki::notification::get_url xowiki::notification::get_url AcsSc.notificationtype.geturl.xowiki_notif_type->xowiki::notification::get_url category::get_name category::get_name (public) xowiki::notification::get_url->category::get_name site_node::get_url site_node::get_url (public) xowiki::notification::get_url->site_node::get_url xowiki::url xowiki::url (private) xowiki::notification::get_url->xowiki::url

Testcases:
No testcase defined.
Source code:
    if {[::xo::dc 0or1row is_package_id {
      select 1 from apm_packages where package_id = :id}]
      } {
      #
      # the specified id is a package_id
      #
      set node_id [::xo::dc get_value get_node_id {
        select node_id from site_nodes where object_id = :id
      }]
      set url [site_node::get_url -node_id $node_id]
      return $url
    }
    if {[category::get_name $id] ne ""} {
      #
      # the specified id is a category_id
      #
      # if we would know the package_id here, we could return something like
      #     /xowiki/weblog-portlet?summary=1&category_id=8380
      # however, since we have only a category_id, which might be mapped to
      # multiple xowiki instances, we give up here.
      return /categories
    }
    # id is a revision_id
    return [::xowiki::url $id]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: