API17

Difference between revisions of "JPath"

From Joomla! Documentation

m (→‎User contributed notes: moving preparation)
m (preparing for archive only)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JPath==
 
=={{JVer|11.1}} JPath==
 
===Description===
 
===Description===
{{Description:JPath}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JPath|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 14: Line 12:
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::canChmod/11.1|canChmod]]
+
|[[API17:JPath::canChmod|canChmod]]
 
|Checks if a path's permissions can be changed.  
 
|Checks if a path's permissions can be changed.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::check/11.1|check]]
+
|[[API17:JPath::check|check]]
 
|Checks for snooping outside of the file system root.  
 
|Checks for snooping outside of the file system root.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::clean/11.1|clean]]
+
|[[API17:JPath::clean|clean]]
 
|Function to strip additional / or \ in a path name.  
 
|Function to strip additional / or \ in a path name.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::find/11.1|find]]
+
|[[API17:JPath::find|find]]
 
|Searches the directory paths for a given file.  
 
|Searches the directory paths for a given file.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::getPermissions/11.1|getPermissions]]
+
|[[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.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::isOwner/11.1|isOwner]]
+
|[[API17:JPath::isOwner|isOwner]]
 
|Method to determine if script owns the path.  
 
|Method to determine if script owns the path.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JPath::setPermissions/11.1|setPermissions]]
+
|[[API17:JPath::setPermissions|setPermissions]]
 
|Chmods files and directories recursivly to given permissions.  
 
|Chmods files and directories recursivly to given permissions.  
 
|-
 
|-
Line 47: Line 45:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JPath source code''' on [[jplatform:filesystem/path.php|BitBucket]]
 
* {{JVer|11.1}} '''JPath source code''' on [[jplatform:filesystem/path.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Filesystem/11.1|Filesystem]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Filesystem|Filesystem]]
* [[JPath|Other versions of JPath]]
+
* [[API17:JPath|Other versions of JPath]]
{{SeeAlso:JPath}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JPath|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JPath
 
category=JPath
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*

Latest revision as of 22:32, 24 March 2017

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.

Joomla 11.1 JPath[edit]

Description[edit]

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]


User contributed notes[edit]

Code Examples[edit]