Difference between revisions of "JCli::set"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (preparing for archive only) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Modifies a property of the object, creating it if it does not already exist. | Modifies a property of the object, creating it if it does not already exist. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function set ( |
+ | $key | ||
+ | $value=null | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 32: | Line 30: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed Previous value of the property | |
− | mixed Previous value of the property | + | * '''Defined''' on line 224 of libraries/joomla/application/cli.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/application/cli.php | ||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JCli::set source code''' on [[jplatform:application/cli.php#cl-216|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JCli|JCli]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |
− | * | + | * [[API17:JCli::set|Other versions of JCli::set]] |
− | * [[JCli::set|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCli::set | category=JCli::set | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:30, 24 March 2017
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.
JCli::set[edit]
Description[edit]
Modifies a property of the object, creating it if it does not already exist.
public function set (
$key
$value=null
)
Parameter | Type | Default | Description |
---|---|---|---|
$key | string | The name of the property | |
$value | mixed | null | The value of the property to set |
- Returns mixed Previous value of the property
- Defined on line 224 of libraries/joomla/application/cli.php
- Since
See also[edit]
- JCli::set source code on BitBucket
- Class JCli
- Subpackage Application
- Other versions of JCli::set
User contributed notes[edit]
Code Examples[edit]