API16

JStringController/getRef: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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}}
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JStringController/getRef|Edit Descripton]]<nowiki>]</nowiki>
</span>
 
{{Description:JStringController/getRef}}


===Syntax===
===Syntax===
Line 37: Line 32:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JStringController/getRef|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JStringController/getRef}}
</span>
{{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 />