function __construct($loginInfo, $select_db)
 {
     if ($this->debug) {
         $this->debugMsg .= "sp_permissions() class constructor initiated" . '\\r';
     }
     sp_login::__construct($loginInfo, $select_db);
     if (!sp_login::isLoggedIn()) {
         sp_login::login();
     }
     if (!isset($this->mysqliHandler)) {
         $this->mysqliHandler();
     }
     $this->capabilities = $this->get_capabilities($this->userInfo['id']);
 }