ElixirVault/www/system-brs-core/sys/sysUsers/sysUsers.php

53 lines
1.0 KiB
PHP

<?php
namespace BRSystems\Core\Sys\sysUsers;
use BRSystems\Core\Sys\sysUsers\inc\sysUsersController;
/**
* sysUsers Controller
*
* @category sysUsers Controller
* @author Mareks Keišs <mareks.keiss@brsystems.lv>
* @since Version 2.0
*/
class sysUsers
{
public $DIR;
public $uriData;
public $controller;
/**
* Class constructor
*/
public function __construct($uriData) {
$this->uriData = $uriData;
$this->DIR = __DIR__ ? __DIR__ : dirname(__FILE__);
$this->controller = new sysUsersController($this->uriData, $this->DIR, basename($this->DIR));
}
/**
* Default function to run
* Skip if other callback defined
*/
public function run() {
$action = getV('action');
if($action){
switch ($action) {
case 'edit':
break;
default:
$this->controller->run();
break;
}
}else{
$this->controller->run();
}
}
}