File Names

Utility functions for working with file names.

Class Methods

The following methods can be invoked on instances of this class.

getFileNoFolder(string strFile)

Returns the file name part without the parent folder

getParentFolder(string strFile)

Returns the parent folder from a file name
\Framework\System\FileNames::determineParentFolder('/media/image.gif'); Returns: '/media/'

getFileNoExtension(string strFile)

Returns the file name part without the extension

getFileExtension(string strFile)

Returns a file extension of a filename

getExtensionsImage()

Returns all extensions that are images

getExtensionsVideo()

Returns all extensions that are video files

getExtensionsAudio()

Returns all extensions that are audio files

getType(string strFile)

Returns the type of file

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class