JFile::stripExt
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFile::stripExt[edit]
Description[edit]
Strips the last extension off a file name.
public static function stripExt ($file)
Parameter | Type | Default | Description |
---|---|---|---|
$file | string | The file name |
- Returns string The file name without the extension
- Defined on line 47 of libraries/joomla/filesystem/file.php
- Since
- Referenced by
- JElementModuleLayouts::_getOptions
- JElementComponentLayouts::_getOptions
- JInstallerPlugin::discover
- JInstallerLibrary::discover
- JArchive::extract
- JFormFieldModuleLayout::getInput
- JFormFieldFileList::getOptions
- JAdapter::loadAllAdapters
- JPackageManifest::loadManifestFromXML
- JLibraryManifest::loadManifestFromXML
See also[edit]
JFile::stripExt source code on BitBucket
Class JFile
Subpackage Filesystem
- Other versions of JFile::stripExt
User contributed notes[edit]
Code Examples[edit]