Actions

API17

Difference between revisions of "JFolder::create"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFolder::create|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFolder::create|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JFolder::create ($path= '', $mode=0755)
+
public static function create (
 +
        $path= ''
 +
        $mode=0755
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 29:
 
|int
 
|int
 
|0755
 
|0755
|Directory permissions to set for folders created.  
+
|Directory permissions to set for folders created.
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True if successful.
boolean True if successful.
+
* '''Defined''' on line 156 of libraries/joomla/filesystem/folder.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/folder.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]]
* [[JArchiveZip/_extract/11.1|JArchiveZip::_extract]]
+
** [[JArchiveZip::_extractNative/11.1|JArchiveZip::_extractNative]]
* [[JArchiveZip/_extractNative/11.1|JArchiveZip::_extractNative]]
+
** [[JInstallerLanguage::_install/11.1|JInstallerLanguage::_install]]
* [[JInstallerLanguage/_install/11.1|JInstallerLanguage::_install]]
+
** [[JFile::copy/11.1|JFile::copy]]
* [[JFile/copy/11.1|JFile::copy]]
+
** [[JArchiveTar::extract/11.1|JArchiveTar::extract]]
* [[JArchiveTar/extract/11.1|JArchiveTar::extract]]
+
** [[JArchive::extract/11.1|JArchive::extract]]
* [[JArchive/extract/11.1|JArchive::extract]]
+
** [[JLoggerFormattedText::initFile/11.1|JLoggerFormattedText::initFile]]
* [[JLoggerFormattedText/initFile/11.1|JLoggerFormattedText::initFile]]
+
** [[JInstallerTemplate::install/11.1|JInstallerTemplate::install]]
* [[JInstallerTemplate/install/11.1|JInstallerTemplate::install]]
+
** [[JInstallerPlugin::install/11.1|JInstallerPlugin::install]]
* [[JInstallerPlugin/install/11.1|JInstallerPlugin::install]]
+
** [[JInstallerLibrary::install/11.1|JInstallerLibrary::install]]
* [[JInstallerLibrary/install/11.1|JInstallerLibrary::install]]
+
** [[JInstallerComponent::install/11.1|JInstallerComponent::install]]
* [[JInstallerComponent/install/11.1|JInstallerComponent::install]]
+
** [[JInstallerModule::install/11.1|JInstallerModule::install]]
* [[JInstallerModule/install/11.1|JInstallerModule::install]]
+
** [[JInstallerFile::install/11.1|JInstallerFile::install]]
* [[JInstallerFile/install/11.1|JInstallerFile::install]]
+
** [[JInstaller::parseFiles/11.1|JInstaller::parseFiles]]
* [[JInstaller/parseFiles/11.1|JInstaller::parseFiles]]
+
** [[JInstaller::parseLanguages/11.1|JInstaller::parseLanguages]]
* [[JInstaller/parseLanguages/11.1|JInstaller::parseLanguages]]
+
** [[JInstaller::parseMedia/11.1|JInstaller::parseMedia]]
* [[JInstaller/parseMedia/11.1|JInstaller::parseMedia]]
+
** [[JInstallerComponent::update/11.1|JInstallerComponent::update]]
* [[JInstallerComponent/update/11.1|JInstallerComponent::update]]
+
** [[JFile::upload/11.1|JFile::upload]]
* [[JFile/upload/11.1|JFile::upload]]
+
** [[JFile::write/11.1|JFile::write]]
* [[JFile/write/11.1|JFile::write]]
+
** [[JDaemon::writeProcessIdFile/11.1|JDaemon::writeProcessIdFile]]
* [[JDaemon/writeProcessIdFile/11.1|JDaemon::writeProcessIdFile]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JFolder::create source code''' on [[jplatform:filesystem/folder.php#cl-148|BitBucket]]
 +
* {{JVer|11.1}} Class [[JFolder/11.1|JFolder]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]]
 +
* [[JFolder::create|Other versions of JFolder::create]]
 +
{{SeeAlso:JFolder::create}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFolder::create|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFolder::create|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JFolder/11.1|JFolder]]
+
===User contributed notes===
* [[JFolder::create|Other versions of this method]]
+
{{SeeAlso:JFolder::create}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 72: Line 73:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JFolder]][[Category:JFolder::create]]</noinclude>
 
<noinclude>[[Category:JFolder]][[Category:JFolder::create]]</noinclude>

Revision as of 20:57, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JFolder::create

Description

Create a folder -- and all necessary parent folders.

Description:JFolder::create [Edit Descripton]

public static function create (
        $path= ''
        $mode=0755
)
Parameter Type Default Description
$path string A path to create from the base path.
$mode int 0755 Directory permissions to set for folders created.

See also

SeeAlso:JFolder::create [Edit See Also]

User contributed notes

<CodeExamplesForm />