Class edit_menu

Description

Modify the menu of the categories and books.

Only the superuser can access this module.

Located in /templates/admin/edit_menu/edit_menu.php (line 32)

WebObject
   |
   --edit_menu
Method Summary
 void add_books_rs ()
 void add_subitems_rs ()
 void init ()
 void onRender ()
 void on_add_subitem ( $event_args)
 void on_apply ( $event_args)
 void on_cancel ( $event_args)
 void on_delete ( $event_args)
 void on_move_down ( $event_args)
 void on_move_up ( $event_args)
 void on_paste ( $event_args)
 void on_select ( $event_args)
 void on_update ( $event_args)
 void select_item ( $item_id)
 void transform ( $transformer, [ $arr_params = array()])
 void transform_menu ( $transformer, [ $arr_params = array()])
Methods
add_books_rs (line 233)

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

void add_books_rs ()
add_subitems_rs (line 210)

add a recordset of the subitems of the selected item

void add_subitems_rs ()
init (line 34)
void init ()
onRender (line 203)
void onRender ()
on_add_subitem (line 135)

add a new subitem to the current item

void on_add_subitem ( $event_args)
  • $event_args
on_apply (line 173)

apply the modifications to the main menu

void on_apply ( $event_args)
  • $event_args
on_cancel (line 193)

discard any modifications and get a copy of the main menu

void on_cancel ( $event_args)
  • $event_args
on_delete (line 112)

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

void on_delete ( $event_args)
  • $event_args
on_move_down (line 128)

move down the given item

void on_move_down ( $event_args)
  • $event_args
on_move_up (line 121)

move up the given item

void on_move_up ( $event_args)
  • $event_args
on_paste (line 143)

add any items in clipboard as subitems of the current item

void on_paste ( $event_args)
  • $event_args
on_select (line 46)

select an item for editing

void on_select ( $event_args)
  • $event_args
on_update (line 102)

save modifications in id and caption of the current item

void on_update ( $event_args)
  • $event_args
select_item (line 56)

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

void select_item ( $item_id)
  • $item_id
transform (line 82)

Applies the given xsl transformer to menu.xml and returns the result. $arr_params is an associative array of parameters.

void transform ( $transformer, [ $arr_params = array()])
  • $transformer
  • $arr_params
transform_menu (line 68)
void transform_menu ( $transformer, [ $arr_params = array()])
  • $transformer
  • $arr_params

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