erm did a small amount
output database to view added basic filters improve bootstrap theming and positioning added pagination
This commit is contained in:
@@ -9,7 +9,15 @@ class UserDataSet {
|
||||
$this->_dbInstance = Database::getInstance();
|
||||
$this->_dbHandle = $this->_dbInstance->getDbConnection();
|
||||
}
|
||||
|
||||
public function checkAccessLevel($username) {
|
||||
$sqlQuery = "SELECT ecoUser.userType FROM ecoUser
|
||||
LEFT JOIN ecoUsertypes ON ecoUser.userType = ecoUsertypes.userType
|
||||
WHERE ecoUser.username = ?";
|
||||
$statement = $this->_dbHandle->prepare($sqlQuery);
|
||||
$statement->bindValue(1, $username);
|
||||
$statement->execute();
|
||||
return $statement->fetch(PDO::FETCH_ASSOC)['userType'];
|
||||
}
|
||||
public function fetchAll(): array
|
||||
{
|
||||
$sqlQuery = 'SELECT * FROM ecoUser;';
|
||||
|
Reference in New Issue
Block a user