API16

API16:JInstaller/getPath

From Joomla! Documentation

Revision as of 22:53, 22 March 2010 by 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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get an installer path by name

[Edit Descripton]

Template:Description:JInstaller/getPath

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;
}

[Edit See Also] Template:SeeAlso:JInstaller/getPath

Examples

<CodeExamplesForm />