public function getFileClass($file)
    {
        $sections = explode(DIRECTORY_SEPARATOR, $file);
        $fileName = $sections[count($sections) - 1];

        $class = str_replace('.php', '', $fileName);

        return $class;
    }
public function getFileClass($file)
    {
        $sections = explode(DIRECTORY_SEPARATOR, $file);
        $fileName = $sections[count($sections) - 1];

        $class = str_replace('.php', '', $fileName);

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

@param string $file File path

@return string
Generate a name from the file path .