API17

JFile

From Joomla! Documentation

Revision as of 03:54, 1 July 2012 by BastianW (talk | contribs) (→‎See also: added crosslink to: How to use the filesystem package)

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.

Joomla 11.1 JFile[edit]

Description[edit]

Template:Description:JFile [Edit Descripton]

Methods[edit]

Visibility Method name Description
public static copy Copies a file.
public static delete Delete a file or array of files.
public static exists Wrapper for the standard file_exists function.
public static getExt Gets the extension of a file name.
public static getName Returns the name, without any path.
public static makeSafe Makes file name safe to use.
public static move Moves a file.
public static read Read the contents of a file.
public static stripExt Strips the last extension off a file name.
public static upload Moves an uploaded file to a destination folder.
public static write Write contents to a file.
  • Defined in libraries/joomla/filesystem/file.php

Importing[edit]

jimport( 'joomla.filesystem.file' );

See also[edit]

Template:SeeAlso:JFile [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />