Difference between revisions of "JFolder::create"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
(One intermediate revision by the same 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> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | 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''' boolean True if successful. | |
− | boolean True if successful. | + | * '''Defined''' on line 156 of libraries/joomla/filesystem/folder.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/filesystem/folder.php | + | * '''Referenced by''' |
− | + | ** [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]] | |
− | * [[JArchiveZip | + | ** [[JArchiveZip::_extractNative/11.1|JArchiveZip::_extractNative]] |
− | * [[JArchiveZip | + | ** [[JInstallerLanguage::_install/11.1|JInstallerLanguage::_install]] |
− | * [[JInstallerLanguage | + | ** [[JFile::copy/11.1|JFile::copy]] |
− | * [[JFile | + | ** [[JArchiveTar::extract/11.1|JArchiveTar::extract]] |
− | * [[JArchiveTar | + | ** [[JArchive::extract/11.1|JArchive::extract]] |
− | * [[JArchive | + | ** [[JLoggerFormattedText::initFile/11.1|JLoggerFormattedText::initFile]] |
− | * [[JLoggerFormattedText | + | ** [[JInstallerTemplate::install/11.1|JInstallerTemplate::install]] |
− | * [[JInstallerTemplate | + | ** [[JInstallerPlugin::install/11.1|JInstallerPlugin::install]] |
− | * [[JInstallerPlugin | + | ** [[JInstallerLibrary::install/11.1|JInstallerLibrary::install]] |
− | * [[JInstallerLibrary | + | ** [[JInstallerComponent::install/11.1|JInstallerComponent::install]] |
− | * [[JInstallerComponent | + | ** [[JInstallerModule::install/11.1|JInstallerModule::install]] |
− | * [[JInstallerModule | + | ** [[JInstallerFile::install/11.1|JInstallerFile::install]] |
− | * [[JInstallerFile | + | ** [[JInstaller::parseFiles/11.1|JInstaller::parseFiles]] |
− | * [[JInstaller | + | ** [[JInstaller::parseLanguages/11.1|JInstaller::parseLanguages]] |
− | * [[JInstaller | + | ** [[JInstaller::parseMedia/11.1|JInstaller::parseMedia]] |
− | * [[JInstaller | + | ** [[JInstallerComponent::update/11.1|JInstallerComponent::update]] |
− | * [[JInstallerComponent | + | ** [[JFile::upload/11.1|JFile::upload]] |
− | * [[JFile | + | ** [[JFile::write/11.1|JFile::write]] |
− | * [[JFile | + | ** [[JDaemon::writeProcessIdFile/11.1|JDaemon::writeProcessIdFile]] |
− | * [[JDaemon | ||
===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> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<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
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.
JFolder::create[edit]
Description[edit]
Create a folder -- and all necessary parent folders.
Template: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. |
- Returns boolean True if successful.
- Defined on line 156 of libraries/joomla/filesystem/folder.php
- Since
- Referenced by
- JArchiveZip::_extract
- JArchiveZip::_extractNative
- JInstallerLanguage::_install
- JFile::copy
- JArchiveTar::extract
- JArchive::extract
- JLoggerFormattedText::initFile
- JInstallerTemplate::install
- JInstallerPlugin::install
- JInstallerLibrary::install
- JInstallerComponent::install
- JInstallerModule::install
- JInstallerFile::install
- JInstaller::parseFiles
- JInstaller::parseLanguages
- JInstaller::parseMedia
- JInstallerComponent::update
- JFile::upload
- JFile::write
- JDaemon::writeProcessIdFile
See also[edit]
- JFolder::create source code on BitBucket
- Class JFolder
- Subpackage Filesystem
- Other versions of JFolder::create
Template:SeeAlso:JFolder::create [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />