JStringController/getRef: Difference between revisions
From Joomla! Documentation
New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JStringControll... |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JStringController/getRef}} | |||
{{Description:JStringController/getRef}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 37: | Line 32: | ||
</source> | </source> | ||
{{subst:SeeAlso:JStringController/getRef}} | |||
{{SeeAlso:JStringController/getRef}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:28, 24 March 2017
{{subst:Description:JStringController/getRef}}
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;
}
}
{{subst:SeeAlso:JStringController/getRef}}
Examples
<CodeExamplesForm />