Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
menuVoice.php
Go to the documentation of this file.
00001 <?php
00030 class menuVoice extends model {
00031         
00038         function __construct($id) {
00039         
00040                 $this->_tbl_data = TBL_MENU;
00041                 parent::__construct($id);
00042 
00043         }
00044         
00053         public static function get($opts=null) {
00054             
00055                 $registry = registry::instance();
00056 
00057                 $objs = array();
00058 
00059                 $where = gOpt($opts, "where", ""); 
00060                 $order = gOpt($opts, "order", null); 
00061 
00062                 $rows = $registry->db->autoSelect("id", TBL_MENU, $where, $order, null);
00063                 foreach($rows as $row) $objs[] = new menuVoice($row['id']);
00064 
00065                 return $objs;
00066 
00067         }
00068 
00069 }
00070 
00071 ?>