Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | getExt ($file) |
static | stripExt ($file) |
static | makeSafe ($file) |
static | copy ($src, $dest, $path=null, $use_streams=false) |
static | delete ($file) |
static | move ($src, $dest, $path= '', $use_streams=false) |
static | read ($filename, $incpath=false, $amount=0, $chunksize=8192, $offset=0) |
static | write ($file, &$buffer, $use_streams=false) |
static | upload ($src, $dest, $use_streams=false) |
static | exists ($file) |
static | getName ($file) |
Copies a file
string | $src | The path to the source file |
string | $dest | The path to the destination file |
string | $path | An optional base path to prefix to the file names |
boolean | $use_streams | True to use streams |
Références $path, JText\_(), JPath\clean(), JFolder\create(), JClientHelper\getCredentials(), JFTP\getInstance(), JFactory\getStream(), jimport(), JPATH_ROOT, null, JError\raiseWarning(), et JText\sprintf().
Référencé par JInstaller\copyFiles(), et JArchive\extract().
|
static |
Delete a file or array of files
mixed | $file | The file name or an array of file names |
Références $file, $files, JPath\clean(), elseif, JClientHelper\getCredentials(), JFTP\getInstance(), jimport(), JPATH_ROOT, null, JError\raiseWarning(), et JText\sprintf().
Référencé par JInstaller\abort(), JoomlaupdateModelDefault\cleanUp(), JInstallerHelper\cleanupInstall(), JoomlaupdateModelDefault\createRestorationFile(), MediaControllerFolder\delete(), MediaControllerFile\delete(), JFolder\delete(), joomlaInstallerScript\deleteUnexistingFiles(), AdmintoolsHelperDownload\download(), BannersModelTracks\getContent(), JPath\isOwner(), JInstaller\parseFiles(), JInstaller\removeFiles(), JInstallationControllerSetup\removeFolder(), JInstallerLibrary\uninstall(), JInstallerPackage\uninstall(), JInstallerFile\uninstall(), et JInstallerPlugin\uninstall().
|
static |
Wrapper for the standard file_exists function
string | $file | File path |
Références $file, et JPath\clean().
Référencé par JInstallerLanguage\_install(), JCaptcha\_load(), JEditor\_loadEditor(), JoomlaupdateModelDefault\createRestorationFile(), JHelp\createURL(), joomlaInstallerScript\deleteUnexistingFiles(), MenusViewItems\display(), AdmintoolsHelperDownload\download(), JoomlaupdateModelDefault\download(), TemplatesModelTemplate\fixTemplateName(), plgFinderCategories\index(), JInstallationModelDatabase\initialise(), LanguagesHelper\parseFile(), MenusModelItem\preprocessForm(), JInstallerLanguage\update(), et MediaControllerFile\upload().
|
static |
Gets the extension of a file name
string | $file | The file name |
Références $file.
Référencé par MediaHelper\canUpload(), JArchive\extract(), MediaModelList\getList(), JHtml\includeRelativeFiles(), JAdapter\loadAllAdapters(), JStream\open(), et TemplatesModelSource\populateState().
|
static |
Returns the name, without any path.
string | $file | File path |
Références $file.
Référencé par JArchive\extract(), JFormFieldComponentLayout\getInput(), et MenusModelMenutypes\getTypeOptionsFromLayouts().
|
static |
Makes file name safe to use
string | $file | The name of the file [not full path] |
Références $file.
Référencé par MediaControllerFolder\delete(), MediaControllerFile\delete(), MediaControllerFile\reformatFilesArray(), et MediaControllerFile\upload().
|
static |
Moves a file
string | $src | The path to the source file |
string | $dest | The path to the destination file |
string | $path | An optional base path to prefix to the file names |
boolean | $use_streams | True to use streams |
Références $path, JText\_(), JPath\clean(), JClientHelper\getCredentials(), JFTP\getInstance(), JFactory\getStream(), jimport(), JPATH_ROOT, null, JError\raiseWarning(), et JText\sprintf().
Référencé par TemplatesModelTemplate\fixTemplateName(), et JInstallationControllerSetup\removeFolder().
|
static |
Read the contents of a file
string | $filename | The full file path |
boolean | $incpath | Use include path |
integer | $amount | Amount of file to read |
integer | $chunksize | Size of chunks to read |
integer | $offset | Offset of the file |
Références $data, null, JError\raiseWarning(), et JText\sprintf().
Référencé par JArchiveZip\_extract(), MediaHelper\canUpload(), JArchiveBzip2\extract(), JArchiveGzip\extract(), JArchiveTar\extract(), TemplatesModelTemplate\fixTemplateName(), TemplatesModelSource\getSource(), et JRegistry\loadFile().
|
static |
Strips the last extension off of a file name
string | $file | The file name |
Références $file.
Référencé par JElementModuleLayouts\_getOptions(), JElementComponentLayouts\_getOptions(), JInstallerLibrary\discover(), JInstallerPlugin\discover(), JArchive\extract(), JElementFilelist\fetchElement(), JFormFieldModuleLayout\getInput(), JFormFieldSample\getOptions(), JFormFieldFileList\getOptions(), JHtml\includeRelativeFiles(), FinderIndexer\index(), JInstallationModelDatabase\initialise(), JAdapter\loadAllAdapters(), JPackageManifest\loadManifestFromXML(), et JLibraryManifest\loadManifestFromXML().
|
static |
Moves an uploaded file to a destination folder
string | $src | The name of the php (temporary) uploaded file |
string | $dest | The path (including filename) to move the uploaded file to |
boolean | $use_streams | True to use streams |
Références JText\_(), JPath\clean(), JFolder\create(), JClientHelper\getCredentials(), JFTP\getInstance(), JFactory\getStream(), jimport(), JPATH_ROOT, null, JError\raiseWarning(), JPath\setPermissions(), et JText\sprintf().
Référencé par InstallerModelInstall\_getPackageFromUpload(), et MediaControllerFile\upload().
|
static |
Write contents to a file
string | $file | The full file path |
string | &$buffer | The buffer to write |
boolean | $use_streams | Use streams |
Références $file, JPath\clean(), JFolder\create(), JClientHelper\getCredentials(), JFTP\getInstance(), JFactory\getStream(), jimport(), JPATH_ROOT, null, JError\raiseWarning(), et JText\sprintf().
Référencé par JArchiveZip\_createZIPFile(), JArchiveZip\_extract(), JArchiveZip\_extractNative(), MediaControllerFolder\create(), JoomlaupdateModelDefault\createRestorationFile(), LanguagesModelOverrides\delete(), AdmintoolsHelperDownload\download(), JInstallerHelper\downloadPackage(), JArchiveBzip2\extract(), JArchiveGzip\extract(), JArchiveTar\extract(), TemplatesModelTemplate\fixTemplateName(), JPath\isOwner(), ConfigControllerApplication\refreshHelp(), LanguagesModelOverride\save(), TemplatesModelSource\save(), et ConfigModelApplication\writeConfigFile().