* @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(); } } }