type = "rootNode"; } public function getName() { return ""; } public function getChildren(){ $children = array(); $query = 'select authperso_authorities.id_authperso_authority from authperso_authorities join authperso on authperso.id_authperso = authperso_authorities.authperso_authority_authperso_num and authperso.authperso_oeuvre_event = 1 join tu_oeuvres_events on tu_oeuvres_events.oeuvre_event_authperso_authority_num = authperso_authorities.id_authperso_authority'; $result = pmb_mysql_query($query); if(pmb_mysql_num_rows($result)){ while($row = pmb_mysql_fetch_object($result)){ $child = $this->getChild("(K".$row->id_authperso_authority.")"); if ($this->check_write_permission()) { $children[] = $child; } else { $child->set_parent($this); $notices = $child->getNotices(); if (count($notices) && ($notices[0] != "'ensemble_vide'")) { $children[] = $child; } } } } return $children; } }