mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-28 03:08:13 -05:00
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
31 lines
436 B
PHP
31 lines
436 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Models\Employee;
|
|
|
|
/**
|
|
* @property Employee employee
|
|
*/
|
|
class Office extends Secure_Controller
|
|
{
|
|
protected Employee $employee;
|
|
|
|
function __construct()
|
|
{
|
|
parent::__construct('office', null, 'office');
|
|
}
|
|
|
|
public function getIndex(): void
|
|
{
|
|
echo view('home/office');
|
|
}
|
|
|
|
public function logout(): void
|
|
{
|
|
$this->employee = model(Employee::class);
|
|
|
|
$this->employee->logout();
|
|
}
|
|
}
|