Class modified_nodes

Description

Displays a list of the modified nodes that can be approved by the user.

Located in /templates/admin/user_data/modified_nodes/modified_nodes.php (line 33)

WebObject
   |
   --modified_nodes
Method Summary
 void add_has_accr ( &$rs,  $arr_books_accr)
 void add_is_admin ( &$rs,  $arr_books_admin)
 void get_arr_books_accr ( $arr_books_admin)
 void get_title ( $book_id,  $lng,  $node_path)
 void has_approve_right ( $lng,  $node_path,  $arr_access_rights)
 void lang_match ( $lng,  $lang_list)
 void node_match ( $node_path,  $node_list)
 void onRender ()
Methods
add_has_accr (line 138)

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

void add_has_accr ( &$rs,  $arr_books_accr)
  • &$rs
  • $arr_books_accr
add_is_admin (line 81)

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

void add_is_admin ( &$rs,  $arr_books_admin)
  • &$rs
  • $arr_books_admin
get_arr_books_accr (line 111)

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

void get_arr_books_accr ( $arr_books_admin)
  • $arr_books_admin
get_arr_books_admin (line 65)

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

void get_arr_books_admin ()
get_title (line 239)
void get_title ( $book_id,  $lng,  $node_path)
  • $book_id
  • $lng
  • $node_path
has_approve_right (line 179)

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

void has_approve_right ( $lng,  $node_path,  $arr_access_rights)
  • $lng
  • $node_path
  • $arr_access_rights
lang_match (line 229)

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.

void lang_match ( $lng,  $lang_list)
  • $lng
  • $lang_list
node_match (line 211)

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.

void node_match ( $node_path,  $node_list)
  • $node_path
  • $node_list
onRender (line 41)

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'.

void onRender ()

Documentation generated on Wed, 09 Jan 2008 08:26:53 +0100 by phpDocumentor 1.3.2