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