API17:JObject::def
From Joomla! Documentation
JObject::def
Description
Sets a default value if not alreay assigned.
public function def (
$property
$default=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $property | string | The name of the property. | |
| $default | mixed | null | The default value. |
See also
JObject::def source code on BitBucket
Class JObject
Subpackage Base- Other versions of JObject::def
User contributed notes
Code Examples