API16

JInstaller/getPath: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JInstaller/getPath|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JInstaller/getPath}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JInstaller/getPath|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JInstaller/getPath}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getPath
  category=getPath
  category=JInstaller
  category=JInstaller
  category=CodeExample
  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