diff options
author | grum <grum@piwigo.org> | 2008-08-07 21:52:45 +0000 |
---|---|---|
committer | grum <grum@piwigo.org> | 2008-08-07 21:52:45 +0000 |
commit | 526d8006a16bd8b666d94aaf152346537045a0a5 (patch) | |
tree | be1a62befe2bdbe3d0d03a8155aa1d1b228093e5 /plugins/test_menu/menu.class.inc.php | |
parent | 5e3d71c9cab75c7796c566823df96765522c8965 (diff) |
updating files for the Menu class (test_menu)
+ add functionnalities
updating files for the AMenuManager plugin
+ fixes some bugs
+ add functionnalities
updating common classes grum_plugins_classes-2
(needed for the AMenuManager plugin)
+ add functionalities for google_translator use
git-svn-id: http://piwigo.org/svn/trunk@2468 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/test_menu/menu.class.inc.php')
-rw-r--r-- | plugins/test_menu/menu.class.inc.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/test_menu/menu.class.inc.php b/plugins/test_menu/menu.class.inc.php index d37a8345e..7eece66bd 100644 --- a/plugins/test_menu/menu.class.inc.php +++ b/plugins/test_menu/menu.class.inc.php @@ -1,9 +1,9 @@ <?php /* ----------------------------------------------------------------------------- - class name: menu, blocks - class version: 1.0 - date: 2008-07-25 + classes names : menu, section + class version : 1.0 + date : 2008-07-25 ------------------------------------------------------------------------------ Author : Grum @@ -56,6 +56,7 @@ unregister($id) registered() apply() + get_registered_filename() How to use Menu class : 1/ create an instance @@ -99,14 +100,24 @@ class Menu protected $registered_sections=array(); protected $registered_file="registered.dat"; - public function Menu() + public function Menu($registered_path='') { + if($registered_path!='') + { + $this->registered_file=$registered_path.$this->registered_file; + } $this->load_registered(); } /* public functions */ + public function get_registered_filename() + { + // return filename of file for maintain of registered sections + return($this->registered_file); + } + public function add($section_datas) { // add a section to the menu ; datas can be made with the Section class |