Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
group.php
Go to the documentation of this file.
00001 <?php
00027 class group extends model {
00028         
00035         function __construct($id) {
00036         
00037                 $this->_tbl_data = TBL_SYS_GROUPS;
00038 
00039                 parent::__construct($id);
00040 
00041         }
00042 
00049         public static function get($opts=null) {
00050 
00051                 $registry = registry::instance();
00052 
00053                 $objs = array();
00054                 $rows = $registry->db->autoSelect("id", TBL_SYS_GROUPS, '', 'id');
00055                 foreach($rows as $row) $objs[] = $row['id'];
00056 
00057                 return $objs;
00058         
00059         }
00060 
00061 }
00062 
00063 ?>