API15

Difference between revisions of "JFolder"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JFolder}} ===Defined in=== libra...)
 
m (preparing for archive only)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JFolder|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
{{Description:JFolder}}
 
 
 
===Defined in===
 
===Defined in===
 
libraries/joomla/filesystem/folder.php
 
libraries/joomla/filesystem/folder.php
Line 39: Line 34:
 
|Makes path name safe to use.
 
|Makes path name safe to use.
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.filesystem.folder' );</source>
 
<source lang="php">jimport( 'joomla.filesystem.folder' );</source>
  
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JFolder|Edit See Also]]<nowiki>]</nowiki>
+
 
</span>
 
{{SeeAlso:JFolder}}
 
  
 
===Examples===
 
===Examples===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
  noresultsheader=\n
 
  noresultsheader=\n
 
  category=JFolder
 
  category=JFolder
  category=CodeExample
+
  namespace=CodeExample
 
  category=ClassExample
 
  category=ClassExample
 
  include=*
 
  include=*
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>

Latest revision as of 19:38, 24 March 2017

The "API15" 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.

Defined in[edit]

libraries/joomla/filesystem/folder.php

Methods[edit]

Method name Description
copy Copy a folder.
create Create a folder -- and all necessary parent folders.
delete Delete a folder.
move Moves a folder.
exists Wrapper for the standard file_exists function
files Utility function to read the files in a folder.
folders Utility function to read the folders in a folder.
listFolderTree Lists folder in format suitable for tree display.
makeSafe Makes path name safe to use.

Importing[edit]

jimport( 'joomla.filesystem.folder' );



Examples[edit]

Code Examples[edit]