Actions

API17

Difference between revisions of "JArrayHelper::getValue"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JArrayHelper::getValue|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JArrayHelper::getValue|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JArrayHelper::getValue (&$array, $name, $default=null, $type='')
+
public static function getValue (
 +
        &$array
 +
        $name
 +
        $default=null
 +
        $type=''
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 39: Line 41:
 
|string
 
|string
 
|''
 
|''
|Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)  
+
|Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed The value from the source array
mixed The value from the source array
+
* '''Defined''' on line 204 of libraries/joomla/utilities/arrayhelper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/arrayhelper.php (line 204)
+
* '''Referenced by'''
* see source code in [[jplatform:utilities/arrayhelper.php#cl-204|BitBucket]]
+
** [[JUser::bind/11.1|JUser::bind]]
===Referenced by===
+
** [[JModelForm::loadForm/11.1|JModelForm::loadForm]]
* [[JUser::bind/11.1|JUser::bind]]
+
** [[JControllerAdmin::publish/11.1|JControllerAdmin::publish]]
* [[JModelForm::loadForm/11.1|JModelForm::loadForm]]
+
* [[JControllerAdmin::publish/11.1|JControllerAdmin::publish]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JArrayHelper::getValue source code''' on [[jplatform:utilities/arrayhelper.php#cl-196|BitBucket]]
 +
* {{JVer|11.1}} Class [[JArrayHelper/11.1|JArrayHelper]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JArrayHelper::getValue|Other versions of JArrayHelper::getValue]]
 +
{{SeeAlso:JArrayHelper::getValue}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::getValue|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::getValue|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JArrayHelper/11.1|JArrayHelper]]
+
===User contributed notes===
* [[JArrayHelper::getValue|Other versions of this method]]
+
{{SeeAlso:JArrayHelper::getValue}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 66: Line 68:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::getValue]]</noinclude>
 
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::getValue]]</noinclude>

Revision as of 20:10, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JArrayHelper::getValue

Description

Utility function to return a value from a named array or a specified default.

Description:JArrayHelper::getValue [Edit Descripton]

public static function getValue (
        &$array
        $name
        $default=null
        $type=''
)
Parameter Type Default Description
&$array array $array A named array
$name string The key to search for
$default mixed null The default value to give if no key found
$type string Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)

See also

SeeAlso:JArrayHelper::getValue [Edit See Also]

User contributed notes

<CodeExamplesForm />