Difference between revisions of "JPath"
From Joomla! Documentation
(Layout updates) |
m (moving preparation) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JPath== | ||
+ | ===Description=== | ||
+ | {{Description:JPath}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JPath|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JPath|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JPath::canChmod | + | |public static |
+ | |[[API17:JPath::canChmod|canChmod]] | ||
|Checks if a path's permissions can be changed. | |Checks if a path's permissions can be changed. | ||
|- | |- | ||
− | |[[JPath::check | + | |public static |
+ | |[[API17:JPath::check|check]] | ||
|Checks for snooping outside of the file system root. | |Checks for snooping outside of the file system root. | ||
|- | |- | ||
− | |[[JPath::clean | + | |public static |
+ | |[[API17:JPath::clean|clean]] | ||
|Function to strip additional / or \ in a path name. | |Function to strip additional / or \ in a path name. | ||
|- | |- | ||
− | |[[JPath::find | + | |public static |
+ | |[[API17:JPath::find|find]] | ||
|Searches the directory paths for a given file. | |Searches the directory paths for a given file. | ||
|- | |- | ||
− | |[[JPath::getPermissions | + | |public static |
+ | |[[API17:JPath::getPermissions|getPermissions]] | ||
|Get the permissions of the file/folder at a give path. | |Get the permissions of the file/folder at a give path. | ||
|- | |- | ||
− | |[[JPath::isOwner | + | |public static |
+ | |[[API17:JPath::isOwner|isOwner]] | ||
|Method to determine if script owns the path. | |Method to determine if script owns the path. | ||
|- | |- | ||
− | |[[JPath::setPermissions | + | |public static |
+ | |[[API17:JPath::setPermissions|setPermissions]] | ||
|Chmods files and directories recursivly to given permissions. | |Chmods files and directories recursivly to given permissions. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/filesystem/path.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.filesystem.path' );</source> | <source lang="php">jimport( 'joomla.filesystem.path' );</source> | ||
===See also=== | ===See also=== | ||
− | * JPath source code | + | * {{JVer|11.1}} '''JPath source code''' on [[jplatform:filesystem/path.php|BitBucket]] |
− | * [[JPath|Other versions of | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Filesystem|Filesystem]] |
+ | * [[API17:JPath|Other versions of JPath]] | ||
{{SeeAlso:JPath}} | {{SeeAlso:JPath}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JPath|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JPath|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 56: | Line 61: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:19, 11 May 2013
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.
JPath[edit]
Description[edit]
Template:Description:JPath [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | canChmod | Checks if a path's permissions can be changed. |
public static | check | Checks for snooping outside of the file system root. |
public static | clean | Function to strip additional / or \ in a path name. |
public static | find | Searches the directory paths for a given file. |
public static | getPermissions | Get the permissions of the file/folder at a give path. |
public static | isOwner | Method to determine if script owns the path. |
public static | setPermissions | Chmods files and directories recursivly to given permissions. |
- Defined in libraries/joomla/filesystem/path.php
Importing[edit]
jimport( 'joomla.filesystem.path' );
See also[edit]
- JPath source code on BitBucket
- Subpackage Filesystem
- Other versions of JPath
Template:SeeAlso:JPath [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />