xowiki::Package proc is_xowiki_p (public)

 xowiki::Package[i] is_xowiki_p package_id

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

A small stunt to detect if a package is a descendant of xowiki.

Parameters:
package_id
Returns:
boolean

Partial Call Graph (max 5 caller/called nodes):
%3 test_parameter__check_procs parameter__check_procs (test acs-tcl) xowiki::Package proc is_xowiki_p xowiki::Package proc is_xowiki_p test_parameter__check_procs->xowiki::Package proc is_xowiki_p apm_package_key_from_id apm_package_key_from_id (public) xowiki::Package proc is_xowiki_p->apm_package_key_from_id

Testcases:
parameter__check_procs
Source code:
set xowiki_p false
set package_key [apm_package_key_from_id $package_id]
set package_class [::xo::PackageMgr get_package_class_from_package_key $package_key]
if {$package_class ne ""} {
  # we found an xo::Package, but is it an xowiki package?
  set classes [list $package_class {*}[$package_class info heritage]]
  if {"::xowiki::Package" in $classes} {
    set xowiki_p true
  }
}
return $xowiki_p
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: