Example #1
0
 public function __construct($id = null, $username = null)
 {
     $this->db = ORM::getDB('pasl_rbac');
     if (!is_null($title)) {
         $this->__loadObject(array('c_uid' => $id, 'c_username' => $username));
     }
 }
Example #2
0
 public function __construct($role = null, $who = null, $action = null, $type = null)
 {
     $this->db = ORM::getDB('pasl_rbac');
     if (!is_null($role)) {
         $this->__loadObject(array('c_role' => $role, 'c_who' => $who, 'c_action' => $action, 'c_type' => $type));
     }
 }
Example #3
0
 public function __construct($id = null)
 {
     $this->db = \PASL\ORM::getDB('pasl_rbac');
     if (!is_null($title)) {
         $this->__loadObject(array('c_uid' => $id));
     }
 }
Example #4
0
 public function __construct($title = null)
 {
     $this->db = ORM::getDB('pasl_rbac');
     if (!is_null($title)) {
         $this->__loadObject(array('c_title' => $title));
     }
 }
Example #5
0
 public function getDB()
 {
     return ORM::getDB('pasl_rbac');
 }