3 namespace Adldap\Models\Traits
;
5 trait HasLastLogonAndLogOff
8 * Returns the models's last log off date.
10 * https://msdn.microsoft.com/en-us/library/ms676822(v=vs.85).aspx
14 public function getLastLogOff()
16 return $this->getAttribute($this->schema
->lastLogOff(), 0);
20 * Returns the models's last log on date.
22 * https://msdn.microsoft.com/en-us/library/ms676823(v=vs.85).aspx
26 public function getLastLogon()
28 return $this->getAttribute($this->schema
->lastLogOn(), 0);
32 * Returns the models's last log on timestamp.
34 * https://msdn.microsoft.com/en-us/library/ms676824(v=vs.85).aspx
38 public function getLastLogonTimestamp()
40 return $this->getAttribute($this->schema
->lastLogOnTimestamp(), 0);