|
| __construct ($sFullPath, $sInstancePrefix=null, $sRelativePath=null) |
|
| __toString () |
|
| getFullPath () |
|
| getInstancePrefix () |
|
| isBase () |
|
| isSite () |
|
| isPlugin () |
|
| baseVersion () |
|
| siteVersion () |
|
| pluginVersion ($sPluginName) |
|
| getRelativePath () |
|
| getInternalPath () |
|
| getFrontendPath () |
|
| getFileName ($sExtensionCutoff=null) |
|
| getDirectoryPath () |
|
| parent () |
|
| isFile () |
|
| isDirectory () |
|
| getFrontendDirectoryPath () |
|
| addToPath ($sPathItem) |
|
| unlink () |
|
|
static | mainDirCanonical () |
|
FileResource::__construct |
( |
|
$sFullPath, |
|
|
|
$sInstancePrefix = null , |
|
|
|
$sRelativePath = null |
|
) |
| |
Used to create FileResource instances. ResourceFinder will call this with given full path, instance prefix, relative path; other uses will likely let the function figure out instance prefix and relative path. Setting relative path to non-null and instance prefix null is not allowed. Setting instance prefix but not relative path is redundant.
- Parameters
-
string | $sFullPath | The absolute file path |
string | $sInstancePrefix | The part of the CMS’ folder which this file belongs to (base, site or plugins/*); includes trailing slash |
string | $sRelativePath | The file path following the instance prefix. There can be multiple files in the installation with the same relative paths if the instance prefix differs. |
The documentation for this class was generated from the following file:
- cms-full/base/lib/classes/FileResource.php