API17:JObject::set
From Joomla! Documentation
JObject::set
Description
Modifies a property of the object, creating it if it does not already exist.
public function set (
$property
$value=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $property | 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 167 of libraries/joomla/base/object.php
- Since

See also
JObject::set source code on BitBucket
Class JObject
Subpackage Base- Other versions of JObject::set
User contributed notes
Code Examples