public function getFilenameController($filename)
    {
        $filename = strtolower(basename($filename));
        if (preg_match('/^respondent/', $filename)) {
            return 'respondent';
        }
        if (preg_match('/^appointment/', $filename)) {
            return 'calendar';
        }

        return false;
    }
public function getFilenameController($filename)
    {
        $filename = strtolower(basename($filename));
        if (preg_match('/^respondent/', $filename)) {
            return 'respondent';
        }
        if (preg_match('/^appointment/', $filename)) {
            return 'calendar';
        }

        return false;
    }
public function getFilenameController ( $ filename ) { $ filename = strtolower ( basename ( $ filename ) ) ; if ( preg_match ( '/^respondent/' , $ filename ) ) { return 'respondent' ; } if ( preg_match ( '/^appointment/' , $ filename ) ) { return 'calendar' ; } return false ; }
Get the controller that should be linked to the filename

@param string $filename Name of file to import
@return string or false if none found.
Get the controller that should be linked to the filename