Piwik\Plugins\CoreConsole\Commands\GenerateReport::getApiName PHP Method

getApiName() private method

private getApiName ( $reportName )
    private function getApiName($reportName)
    {
        $reportName = trim($reportName);
        $reportName = str_replace(' ', '', $reportName);
        $reportName = preg_replace("/[^A-Za-z0-9]/", '', $reportName);
        $apiName = 'get' . ucfirst($reportName);
        return $apiName;
    }