public static function factory($module, $action)
    {
        $listApiToReport = self::getMapOfModuleActionsToReport();
        $api = $module . '.' . ucfirst($action);

        if (!array_key_exists($api, $listApiToReport)) {
            return null;
        }

        $klassName = $listApiToReport[$api];

        return new $klassName;
    }
public static function factory($module, $action)
    {
        $listApiToReport = self::getMapOfModuleActionsToReport();
        $api = $module . '.' . ucfirst($action);

        if (!array_key_exists($api, $listApiToReport)) {
            return null;
        }

        $klassName = $listApiToReport[$api];

        return new $klassName;
    }
public static function factory ( $ module , $ action ) { $ listApiToReport = self :: getMapOfModuleActionsToReport ( ) ; $ api = $ module . '.' . ucfirst ( $ action ) ; if ( ! array_key_exists ( $ api , $ listApiToReport ) ) { return null ; } $ klassName = $ listApiToReport [ $ api ] ; return new $ klassName ; }
Get an instance of a specific report belonging to the given module and having the given action.
@param  string $module
@param  string $action
@return null|\Piwik\Plugin\Report
@api
Get an instance of a specific report belonging to the given module and having the given action .