[CODE] add client last seen time
This commit is contained in:
parent
153d48f8ef
commit
73b896c395
4 changed files with 23 additions and 2 deletions
|
@ -136,6 +136,14 @@ class LightStatus {
|
|||
}
|
||||
}
|
||||
|
||||
public function setClientLastSeen() {
|
||||
$this->times['clientLastSeen'] = time();
|
||||
$this->saveTimes();
|
||||
}
|
||||
public function getClientLastSeen() {
|
||||
return $this->times['clientLastSeen'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function readTimes() {
|
||||
|
|
Reference in a new issue