edit_menu Class Reference

Inheritance diagram for edit_menu:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file edit_menu.php.

Public Member Functions

 init ()
 on_select ($event_args)
 select an item for editing
 select_item ($item_id)
 Get the 'bookid' and the 'caption' of the selected item and refresh the state variables.
 transform_menu ($transformer, $arr_params=array())
 transform ($transformer, $arr_params=array())
 Applies the given xsl transformer to menu.xml and returns the result.
 on_update ($event_args)
 save modifications in id and caption of the current item
 on_delete ($event_args)
 delete the current item and set the parent item as the current one
 on_move_up ($event_args)
 move up the given item
 on_move_down ($event_args)
 move down the given item
 on_add_subitem ($event_args)
 add a new subitem to the current item
 on_paste ($event_args)
 add any items in clipboard as subitems of the current item
 on_apply ($event_args)
 apply the modifications to the main menu
 on_cancel ($event_args)
 discard any modifications and get a copy of the main menu
 onRender ()
 add_subitems_rs ()
 add a recordset of the subitems of the selected item
 add_books_rs ()
 Add a recordset of all the books, which will be displayed in a listbox.


Member Function Documentation

edit_menu::init (  ) 

Definition at line 34 of file edit_menu.php.

References menu().

edit_menu::on_select ( event_args  ) 

select an item for editing

Definition at line 46 of file edit_menu.php.

References $event_args, and select_item().

edit_menu::select_item ( item_id  ) 

Get the 'bookid' and the 'caption' of the selected item and refresh the state variables.

Definition at line 56 of file edit_menu.php.

References transform().

Referenced by on_apply(), on_cancel(), on_delete(), on_select(), and on_update().

edit_menu::transform_menu ( transformer,
arr_params = array() 
)

Definition at line 68 of file edit_menu.php.

References menu(), transform(), and write_file().

Referenced by on_add_subitem(), on_delete(), on_move_down(), on_move_up(), on_paste(), and on_update().

edit_menu::transform ( transformer,
arr_params = array() 
)

Applies the given xsl transformer to menu.xml and returns the result.

$arr_params is an associative array of parameters.

Definition at line 82 of file edit_menu.php.

References menu(), and shell().

Referenced by add_subitems_rs(), on_apply(), on_delete(), select_item(), and transform_menu().

edit_menu::on_update ( event_args  ) 

save modifications in id and caption of the current item

Definition at line 102 of file edit_menu.php.

References $event_args, select_item(), transform_menu(), and update().

edit_menu::on_delete ( event_args  ) 

delete the current item and set the parent item as the current one

Definition at line 112 of file edit_menu.php.

References select_item(), transform(), and transform_menu().

edit_menu::on_move_up ( event_args  ) 

move up the given item

Definition at line 121 of file edit_menu.php.

References $event_args, move_up(), and transform_menu().

edit_menu::on_move_down ( event_args  ) 

move down the given item

Definition at line 128 of file edit_menu.php.

References $event_args, move_down(), and transform_menu().

edit_menu::on_add_subitem ( event_args  ) 

add a new subitem to the current item

Definition at line 135 of file edit_menu.php.

References $event_args, add_subitem(), and transform_menu().

edit_menu::on_paste ( event_args  ) 

add any items in clipboard as subitems of the current item

Definition at line 143 of file edit_menu.php.

References transform_menu().

edit_menu::on_apply ( event_args  ) 

apply the modifications to the main menu

Definition at line 173 of file edit_menu.php.

References $book_list, $menu_items, menu(), select_item(), shell(), transform(), and write_file().

edit_menu::on_cancel ( event_args  ) 

discard any modifications and get a copy of the main menu

Definition at line 193 of file edit_menu.php.

References menu(), select_item(), and shell().

edit_menu::onRender (  ) 

Definition at line 203 of file edit_menu.php.

References add_books_rs(), and add_subitems_rs().

edit_menu::add_subitems_rs (  ) 

add a recordset of the subitems of the selected item

Definition at line 210 of file edit_menu.php.

References transform().

Referenced by onRender().

edit_menu::add_books_rs (  ) 

Add a recordset of all the books, which will be displayed in a listbox.

Definition at line 233 of file edit_menu.php.

References $book_id, shell(), and T_().

Referenced by onRender().


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