API17:JRegistry::def
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JRegistry::def|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRegistry::def|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function def ( |
| + | $key | ||
| + | $default= '' | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 37: | Line 37: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string The value set, or the default if the value was not previously set (or null). | |
| − | string The value set, or the default if the value was not previously set (or null). | + | * '''Defined''' on line 76 of libraries/joomla/registry/registry.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/registry/registry.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JRegistry::def source code''' on [[jplatform:registry/registry.php#cl-68|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JRegistry/11.1|JRegistry]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Registry/11.1|Registry]] | ||
| + | * [[JRegistry::def|Other versions of JRegistry::def]] | ||
| + | {{SeeAlso:JRegistry::def}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JRegistry::def|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JRegistry::def|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 58: | Line 57: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JRegistry]][[Category:JRegistry::def]]</noinclude> | <noinclude>[[Category:JRegistry]][[Category:JRegistry::def]]</noinclude> | ||
Revision as of 21:30, 27 April 2011
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.
JRegistry::def
Description
Sets a default value if not alreay assigned.
Description:JRegistry::def [Edit Descripton]
public function def ( $key $default= '' )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $key | string | The name of the parameter. | |
| $default | string | An optional value for the parameter. | |
| string | Anoptionalgroupfortheparameter. |
- Returns string The value set, or the default if the value was not previously set (or null).
- Defined on line 76 of libraries/joomla/registry/registry.php
- Since
See also
-
JRegistry::def source code on BitBucket
-
Class JRegistry
-
Subpackage Registry
- Other versions of JRegistry::def
SeeAlso:JRegistry::def [Edit See Also]
User contributed notes
<CodeExamplesForm />
