Yab\Quarx\Services\FileService::getFileClass PHP 메소드

getFileClass() 공개 정적인 메소드

Generate a name from the file path.
public static getFileClass ( string $file ) : string
$file string File path
리턴 string
    public static function getFileClass($file)
    {
        $sections = explode(DIRECTORY_SEPARATOR, $file);
        $fileName = $sections[count($sections) - 1];
        $class = str_replace('.php', '', $fileName);
        return $class;
    }