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)); } }
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)); } }
public function __construct($id = null) { $this->db = \PASL\ORM::getDB('pasl_rbac'); if (!is_null($title)) { $this->__loadObject(array('c_uid' => $id)); } }
public function __construct($title = null) { $this->db = ORM::getDB('pasl_rbac'); if (!is_null($title)) { $this->__loadObject(array('c_title' => $title)); } }
public function getDB() { return ORM::getDB('pasl_rbac'); }