API16

JLanguage/getPaths: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 48: Line 48:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getPaths
  category=getPaths
  category=JLanguage
  category=JLanguage
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:52, 25 March 2017

Description

Get a list of language files that have been loaded


<! removed transcluded page call, red link never existed >

Syntax

getPaths($extension=null)
Parameter Name Default Value Description
$extension null $extension An option extension name

Returns

array

Defined in

libraries/joomla/language/language.php

Importing

jimport( 'joomla.language.language' );

Source Body

public function getPaths($extension = null)
{
        if (isset($extension)) {
                if (isset($this->_paths[$extension])) {
                        return $this->_paths[$extension];
                }

                return null;
        } else {
                return $this->_paths;
        }
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples