API16

JStringController/getRef: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 1: Line 1:
{{subst:Description:JStringController/getRef}}
===Syntax===
===Syntax===
<source lang="php">getRef($reference)</source>
<source lang="php">getRef($reference)</source>
Line 33: Line 31:




{{subst:SeeAlso:JStringController/getRef}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getRef
  category=getRef
  category=JStringController
  category=JStringController
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:09, 25 March 2017

Syntax

getRef($reference)
Parameter Name Default Value Description
$reference

Defined in

libraries/joomla/filesystem/support/stringcontroller.php

Importing

jimport( 'joomla.filesystem.support.stringcontroller' );

Source Body

function getRef($reference) {
        $ref =& JStringController::_getArray();
        if(isset($ref[$reference])) {
                return $ref[$reference];
        } else {
                return false;
        }
}



Examples

Code Examples