modified_nodes Class Reference

Inheritance diagram for modified_nodes:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 33 of file modified_nodes.php.

Public Member Functions

 onRender ()
 First find the books where the user has some access rights.
 get_arr_books_admin ()
 return an array of the books for which the user is admin
 add_is_admin (&$rs, $arr_books_admin)
 Add in the recordset all the modified nodes in the books for which the user is admin.
 get_arr_books_accr ($arr_books_admin)
 Return an array with the books where the user has some access rights and is not admin.
 add_has_accr (&$rs, $arr_books_accr)
 Find the modified nodes that can be approved by user and add them in the recordset.
 has_approve_right ($lng, $node_path, $arr_access_rights)
 Returns true if the user has approve right on the given node.
 node_match ($node_path, $node_list)
 Returns true if one of the node_path expressions in the list matches the given node path, otherwise returns false.
 lang_match ($lng, $lang_list)
 Returns true if one of the language ids in the list matches the given language, otherwise returns false.
 get_title ($book_id, $lng, $node_path)


Member Function Documentation

modified_nodes::onRender (  ) 

First find the books where the user has some access rights.

Then find the modified nodes in each of these books. Next, check whether the user has approve rights on these modified nodes, and if yes, add them to the recordset 'modified_nodes'.

Definition at line 41 of file modified_nodes.php.

References add_has_accr(), add_is_admin(), get_arr_books_accr(), and get_arr_books_admin().

modified_nodes::get_arr_books_admin (  ) 

return an array of the books for which the user is admin

Definition at line 65 of file modified_nodes.php.

References $arr_books, and get_user_data().

Referenced by onRender().

modified_nodes::add_is_admin ( &$  rs,
arr_books_admin 
)

Add in the recordset all the modified nodes in the books for which the user is admin.

Definition at line 81 of file modified_nodes.php.

References $book_id, $lng, get_title(), and shell().

Referenced by onRender().

modified_nodes::get_arr_books_accr ( arr_books_admin  ) 

Return an array with the books where the user has some access rights and is not admin.

Definition at line 111 of file modified_nodes.php.

References $book_id, and shell().

Referenced by onRender().

modified_nodes::add_has_accr ( &$  rs,
arr_books_accr 
)

Find the modified nodes that can be approved by user and add them in the recordset.

Definition at line 138 of file modified_nodes.php.

References $book_id, $lng, get_title(), has_approve_right(), and shell().

Referenced by onRender().

modified_nodes::has_approve_right ( lng,
node_path,
arr_access_rights 
)

Returns true if the user has approve right on the given node.

Definition at line 179 of file modified_nodes.php.

References $lng, lang_match(), and node_match().

Referenced by add_has_accr().

modified_nodes::node_match ( node_path,
node_list 
)

Returns true if one of the node_path expressions in the list matches the given node path, otherwise returns false.

The node_list is a comma separated list of node_path expressions (which are actually regular expressions), or is the string 'ALL'. 'ALL' matches any node path.

Definition at line 211 of file modified_nodes.php.

Referenced by has_approve_right().

modified_nodes::lang_match ( lng,
lang_list 
)

Returns true if one of the language ids in the list matches the given language, otherwise returns false.

The lang_list is a comma separated list of languages, or 'ALL'. 'ALL' matches any language.

Definition at line 229 of file modified_nodes.php.

References $lng.

Referenced by has_approve_right().

modified_nodes::get_title ( book_id,
lng,
node_path 
)

Definition at line 239 of file modified_nodes.php.

References shell().

Referenced by add_has_accr(), and add_is_admin().


Generated on Wed Jan 9 08:27:41 2008 for DokBookWiki by  doxygen 1.5.2