private function getModuleName($class)
    {
        $controllerClass = get_class($this);
        $moduleName = substr($controllerClass, 0, strpos($controllerClass, '\\'));

        return $moduleName;
    }
private function getModuleName($class)
    {
        $controllerClass = get_class($this);
        $moduleName = substr($controllerClass, 0, strpos($controllerClass, '\\'));

        return $moduleName;
    }
private function getModuleName ( $ class ) { $ controllerClass = get_class ( $ this ) ; $ moduleName = substr ( $ controllerClass , 0 , strpos ( $ controllerClass , '\\' ) ) ; return $ moduleName ; }
This will get the module name of the class
@param Class
@return String = module name
This will get the module name of the class