2016-09-01 23:13:23 +02:00
|
|
|
<?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';
|
2022-12-25 13:50:33 +01:00
|
|
|
$this->surname = '';
|
2016-09-01 23:13:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function updateAccessTime()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|