JPath/1.5
From Joomla! Documentation
< JPath(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} 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 | ||
|- | |- | ||
| + | |public | ||
|[[JPath::canChmod/1.5|canChmod]] | |[[JPath::canChmod/1.5|canChmod]] | ||
|Checks if a path's permissions can be changed. | |Checks if a path's permissions can be changed. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::check/1.5|check]] | |[[JPath::check/1.5|check]] | ||
|Checks for snooping outside of the file system root. | |Checks for snooping outside of the file system root. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::find/1.5|find]] | |[[JPath::find/1.5|find]] | ||
|Searches the directory paths for a given file. | |Searches the directory paths for a given file. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::getPermissions/1.5|getPermissions]] | |[[JPath::getPermissions/1.5|getPermissions]] | ||
|Get the permissions of the file/folder at a give path. | |Get the permissions of the file/folder at a give path. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::setPermissions/1.5|setPermissions]] | |[[JPath::setPermissions/1.5|setPermissions]] | ||
|Chmods files and directories recursivly to given permissions. | |Chmods files and directories recursivly to given permissions. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::clean/1.5|clean]] | |[[JPath::clean/1.5|clean]] | ||
|Function to strip additional / or \ in a path name. | |Function to strip additional / or \ in a path name. | ||
|- | |- | ||
| + | |public | ||
|[[JPath::isOwner/1.5|isOwner]] | |[[JPath::isOwner/1.5|isOwner]] | ||
|Method to determine if script owns the path. | |Method to determine if script owns the path. | ||
|- | |- | ||
|} | |} | ||
| + | * '''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=== | ||
| + | * {{JVer|1.5}} '''JPath''' on [http://api.joomla.org/Joomla-Framework/Filesystem/JPath.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JPath source code''' on [[jframework15:filesystem/path.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Filesystem/1.5|Filesystem]] | ||
| + | * [[JPath|Other versions of 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 55: | Line 62: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JPath]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JPath]]</noinclude> | ||
Revision as of 18:11, 25 April 2011
JPath
Description
Description:JPath [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | canChmod | Checks if a path's permissions can be changed. |
| public | check | Checks for snooping outside of the file system root. |
| public | find | Searches the directory paths for a given file. |
| public | getPermissions | Get the permissions of the file/folder at a give path. |
| public | setPermissions | Chmods files and directories recursivly to given permissions. |
| public | clean | Function to strip additional / or \ in a path name. |
| public | isOwner | Method to determine if script owns the path. |
- Defined in libraries/joomla/filesystem/path.php
Importing
jimport( 'joomla.filesystem.path' );
See also
-
JPath on api.joomla.org
-
JPath source code on JoomlaCode
-
Subpackage Filesystem
- Other versions of JPath
User contributed notes
<CodeExamplesForm />