Difference between revisions of "JParameter::def"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Layout updates) |
||
Line 12: | Line 12: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public JParameter::def ($key, $default= '', $group= '_default') |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 40: | Line 40: | ||
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 in=== | ===Defined in=== | ||
− | libraries/joomla/html/parameter.php | + | libraries/joomla/html/parameter.php (line 97) |
+ | * see source code in [[jplatform:html/parameter.php#cl-97|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== |
Revision as of 21:04, 23 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JParameter::def[edit]
Description[edit]
Sets a default value if not alreay assigned.
Template:Description:JParameter::def [Edit Descripton]
Since[edit]
Synopsis[edit]
public JParameter::def ($key, $default= '', $group= '_default')
Parameter | Type | Default | Description |
---|---|---|---|
$key | string | The name of the parameter. | |
$default | string | An optional value for the parameter. | |
$group | string | '_default' | An optional group for the parameter. |
Returns[edit]
string The value set, or the default if the value was not previously set (or null).
Defined in[edit]
libraries/joomla/html/parameter.php (line 97)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JParameter::def
Examples[edit]
<CodeExamplesForm />