acs::SiteNode method has_children (protected)
<instance of acs::SiteNode> has_children -node_id node_id
Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl
Check, if the provided site-node has children.
- Switches:
- -node_id (required, integer)
- Returns:
- boolean value. ns_log notice "non-cached version of has_children called with $node_id"
- Testcases:
- No testcase defined.
Source code: set children [::acs::dc list -prepare integer dbqd..has_children { select 1 from site_nodes where parent_id = :node_id FETCH NEXT 1 ROWS ONLY }] return [llength $children]Generic XQL file: packages/acs-tcl/tcl/site-nodes-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/site-nodes-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/site-nodes-procs-oracle.xql