JInstaller/getPath: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Get an installer path by name
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki... |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Get an installer path by name | Get an installer path by name | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 42: | Line 40: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getPath | category=getPath | ||
category=JInstaller | category=JInstaller | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Latest revision as of 01:48, 25 March 2017
Description
Get an installer path by name
<! removed transcluded page call, red link never existed >
Syntax
getPath($name, $default=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | $name Path name | |
| $default | null | $default Default value |
Returns
string Path
Defined in
libraries/joomla/installer/installer.php
Importing
jimport( 'joomla.installer.installer' );
Source Body
public function getPath($name, $default=null)
{
return (!empty($this->_paths[$name])) ? $this->_paths[$name] : $default;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples