JStringController/getRef: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Syntax=== | ===Syntax=== | ||
<source lang="php">getRef($reference)</source> | <source lang="php">getRef($reference)</source> | ||
| Line 33: | Line 31: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getRef | category=getRef | ||
category=JStringController | category=JStringController | ||
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