API17

API17:JObject::def

From Joomla! Documentation

Joomla 11.1 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.
  • Returns
  • Defined on line 65 of libraries/joomla/base/object.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples