private function FirstAdmin()
    {
        $sql = Access::SqlBuilder();
        $tblUser = User::Schema()->Table();
        $where = $sql->Equals($tblUser->Field('IsAdmin'), $sql->Value(true));
        $orderBy = $sql->OrderList($sql->OrderAsc($tblUser->Field('ID')));
        return User::Schema()->First($where, $orderBy);
    }
private function FirstAdmin()
    {
        $sql = Access::SqlBuilder();
        $tblUser = User::Schema()->Table();
        $where = $sql->Equals($tblUser->Field('IsAdmin'), $sql->Value(true));
        $orderBy = $sql->OrderList($sql->OrderAsc($tblUser->Field('ID')));
        return User::Schema()->First($where, $orderBy);
    }
private function FirstAdmin ( ) { $ sql = Access :: SqlBuilder ( ) ; $ tblUser = User :: Schema ( ) -> Table ( ) ; $ where = $ sql -> Equals ( $ tblUser -> Field ( 'IsAdmin' ) , $ sql -> Value ( true ) ) ; $ orderBy = $ sql -> OrderList ( $ sql -> OrderAsc ( $ tblUser -> Field ( 'ID' ) ) ) ; return User :: Schema ( ) -> First ( $ where , $ orderBy ) ; }
Gets the first user that is an admin
@return User The admin user, if present
Gets the first user that is an admin