API17

JObject::def

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.

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

  • Joomla 11.1 JObject::def source code on BitBucket
  • Joomla 11.1 Class JObject
  • Joomla 11.1 Subpackage Base
  • Other versions of JObject::def


User contributed notes

Code Examples


Advertisement