26 lines
441 B
PHP
26 lines
441 B
PHP
<?php
|
|
/**
|
|
* Created by Pensare Software.
|
|
* User: Theo Weijmer
|
|
* Date: 15/12/2017
|
|
* Time: 19:37
|
|
*/
|
|
|
|
class User extends MY_Model {
|
|
|
|
protected $tablename = "users";
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function getUserByUsername( $username )
|
|
{
|
|
$user = $this->get( [
|
|
'UCASE(username)' => strtoupper( $username )], FALSE, TRUE);
|
|
|
|
return $user;
|
|
}
|
|
|
|
} |