API16

Difference between revisions of "JApplication/getPathway"

From Joomla! Documentation

< API16:JApplication
(New page: ===Description=== Returns the application JPathway object. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<...)
 
m (preparing for archive only)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Returns the application JPathway object.
 
Returns the application JPathway object.
  
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JApplication/getPathway|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
  
{{Description:JApplication/getPathway}}
+
 
 +
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 51: Line 49:
 
</source>
 
</source>
  
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JApplication/getPathway|Edit See Also]]<nowiki>]</nowiki>
+
<! removed transcluded page call, red link never existed >
</span>
 
{{SeeAlso:JApplication/getPathway}}
 
  
 
===Examples===
 
===Examples===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
  noresultsheader=\n
 
  noresultsheader=\n
 
  category=getPathway
 
  category=getPathway
 
  category=JApplication
 
  category=JApplication
  category=CodeExample
+
  namespace=CodeExample
 
  category=MethodExample
 
  category=MethodExample
 
  include=*
 
  include=*
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Latest revision as of 20:17, 24 March 2017

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Returns the application JPathway object.


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

Syntax[edit]

getPathway($name=null, $options=array())
Parameter Name Default Value Description
$name null $options An optional associative array of configuration settings.
$options array()

Returns[edit]

object .

Defined in[edit]

libraries/joomla/application/application.php

Importing[edit]

jimport( 'joomla.application.application' );

Source Body[edit]

public function getPathway($name = null, $options = array())
{
        if (!isset($name)) {
                $name = $this->_name;
        }

        jimport('joomla.application.pathway');
        $pathway = &JPathway::getInstance($name, $options);
        if (JError::isError($pathway)) {
                return null;
        }
        return $pathway;
}


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

Examples[edit]

Code Examples[edit]