forked from Public/pics
Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
This commit is contained in:
31
models/Guest.php
Normal file
31
models/Guest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*****************************************************************************
|
||||
* Guest.php
|
||||
* Contains key class Guest, derived from User.
|
||||
*
|
||||
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
||||
*****************************************************************************/
|
||||
|
||||
/**
|
||||
* Guest model; sets typical guest settings to the common attributes.
|
||||
*/
|
||||
class Guest extends User
|
||||
{
|
||||
/**
|
||||
* Constructor for the Guest class. Sets common attributes.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->id_user = 0;
|
||||
$this->is_logged = false;
|
||||
$this->is_guest = true;
|
||||
$this->is_admin = false;
|
||||
$this->first_name = 'Guest';
|
||||
$this->last_name = '';
|
||||
}
|
||||
|
||||
public function updateAccessTime()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user