Lines Matching defs:id

117         // get the namespace genealogy of the current id
119 $id = isset($INFO["id"]) ? $INFO["id"] : "";
120 $sub_ns = $this->_get_sub_ns($id);
121 p_set_metadata($id, array("plugin" => array("plugin_acmenu" => array("sub_ns" => $sub_ns))), false, false);
129 // get heading and id of the namespace where <acmenu> belongs
160 * the id of the <start> pages to keep open in the form:
182 * the namespace genealogy of the current page id, in the form:
229 * ["id"] => (str) "<id>"
235 * ["id"] => (str) "<id>"
261 $id = implode(":", array_filter(array($ns_acmenu, $pg_name), "strlen"));
262 if (!isHiddenPage($id)) {
263 if (auth_quickaclcheck($id) >= AUTH_READ) {
266 $heading = p_get_first_heading($id);
269 "id" => $id,
275 $id = implode(":", array_filter(array($ns_acmenu, $file, $conf["start"]), "strlen"));
276 if ($conf["sneaky_index"] && auth_quickaclcheck($id) < AUTH_READ) {
281 $heading = p_get_first_heading($id);
286 "id" => $id,
292 "id" => $id,
305 * Get the namespace genealogy of the given id.
307 * @param string $id
308 * the current page id, in the form:
311 * the namespace genealogy of the current page id, in the form:
319 private function _get_sub_ns($id)
322 $pieces = explode(":", $id);
345 * ["id"] => (str) "<id>"
351 * ["id"] => (str) "<id>"
367 * the namespace genealogy of the current page id, in the form:
387 $renderer->internallink($val["id"], $val["heading"]);
393 $renderer->internallink($val["id"], $val["heading"]);
397 if (in_array(substr($val["id"], 0, -strlen(":" . $conf["start"])), $sub_ns)
398 || in_array($val["id"], $open_items)) {
404 if (in_array(substr($val["id"], 0, -strlen(":" . $conf["start"])), $sub_ns)) {
406 $renderer->internallink($val["id"], $val["heading"]);
409 $renderer->internallink($val["id"], $val["heading"]);
412 if (in_array(substr($val["id"], 0, -strlen(":" . $conf["start"])), $sub_ns)
413 || in_array($val["id"], $open_items)) {
437 * ["id"] => (str) "<id>"
443 * ["id"] => (str) "<id>"