bjoerne_equals_nodes (line 601)
Returns if two nodes are equal. This is a workaround because of a PHP4 bug. PHP4 has a problem to find out if two node are the same if they have parent-child-relationships like the Bjoerne_PageNode objects have.
unknown_type
bjoerne_equals_nodes
($node1 &$node1, $node2 &$node2)
-
$node1
&$node1
-
$node2
&$node2
bjoerne_find_page (line 156)
Generic method to find a node with the given matcher.
-
$arg
$arg
-
$matcher
&$matcher
bjoerne_find_page_by_id (line 414)
Search all nodes and looks for one with the given id.
bjoerne_find_page_by_name (line 435)
Search all nodes and looks for one with the given name.
Returns the first metching node.
bjoerne_find_page_by_type (line 424)
Search all nodes and looks for one with the given type.
Returns the first metching node.
bjoerne_get_current_node (line 388)
Returns the current node.
bjoerne_get_current_path_element (line 133)
Returns the element of the path on the given level.
@return
&bjoerne_get_current_path_element
(int $level)
bjoerne_get_current_path_elements (line 146)
Returns an array of all path elements. Path means all descendant nodes of the current node and the current node itself.
array
&bjoerne_get_current_path_elements
()
bjoerne_get_default_name_resolver (line 639)
Returns the default name resolver
bjoerne_get_default_url_resolver (line 673)
Returns the default url resolver
bjoerne_get_home_page (line 443)
Returns the home node which is configured by WordPress.
bjoerne_get_link (line 471)
Returns a complete <a>-tag for the given node.
String
bjoerne_get_link
($node &$node, [$args $args = null])
bjoerne_get_metadata_single (line 303)
Returns a single metadata. If there exist more than one the first one is returned.
String
bjoerne_get_metadata_single
(
&$node,
String $attr_name, [
$inherit $inherit =
false],
Bjoerne_PageNode $node)
-
Bjoerne_PageNode
$node
-
String
$attr_name
-
$inherit
$inherit: true if metadata of the parent node are used if a key can't be found.
-
&$node
bjoerne_get_metadata_values (line 284)
array
&bjoerne_get_metadata_values
(
&$node,
String $attr_name, [
boolean $inherit =
false],
Bjoerne_PageNode $node)
-
Bjoerne_PageNode
$node
-
String
$attr_name
-
boolean
$inherit: true if metadata of the parent node are used if a key can't be found.
-
&$node
bjoerne_get_name_resolvers (line 622)
void
bjoerne_get_name_resolvers
()
bjoerne_get_navigation_nodes (line 398)
Returns the navigation nodes on the given level or an empty array if no nodes can be found.
array
&bjoerne_get_navigation_nodes
([int $level = 0])
bjoerne_get_sitemap (line 239)
String
bjoerne_get_sitemap
(array $attributes)
bjoerne_get_url_resolvers (line 656)
Returns
unknown_type
&bjoerne_get_url_resolvers
()
bjoerne_is_node_visible (line 581)
Returns if the node is visible. To decide if a node is visible the metadata are looked for a key 'bjoerne_visibility'. If it set to 'hidden' the node is not visible and otherwise it is.
boolean
bjoerne_is_node_visible
($node &$node)
bjoerne_println (line 316)
Helping function to print text with a trailed \n.
String
bjoerne_println
([String $text = ''])
bjoerne_println_br (line 328)
Helping function to print text with a trailed html line break.
String
bjoerne_println_br
(String $text, [int $num_of_breaks = 1])
-
String
$text
-
int
$num_of_breaks
bjoerne_println_r (line 342)
Helping function to print an array with a trailed html line break.
String
bjoerne_println_r
(String $text, [int $num_of_breaks = 1])
-
String
$text
-
int
$num_of_breaks
bjoerne_print_link (line 570)
Prints a complete <a>-tag for the given node.
void
bjoerne_print_link
($node &$node, [$args $args = null])
bjoerne_print_sitemap (line 230)
Print the sitemap.
void
bjoerne_print_sitemap
(array $attributes)
bjoerne_register_default_name_resolver (line 631)
Registers the default name resolver.
bjoerne_register_default_url_resolver (line 665)
Registers the default url resolver.
bjoerne_register_name_resolver (line 618)
Registers a name resolver.
bjoerne_register_url_resolver (line 648)
Registers a url resolver.
bjoerne_str_contains (line 355)
Returns if a String contains another String.
boolean
bjoerne_str_contains
(String $haystack, String $needle)
-
String
$haystack
-
String
$needle