Actions

API16

JException/set

From Joomla! Documentation

< API16:JException
Revision as of 17:47, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Modifies a property of the object, creating it if it does not already exist.

[Edit Descripton]

Description:JException/set

Syntax

set($property, $value=null)
Parameter Name Default Value Description
$property $property The name of the property
$value null $value The value of the property to set

Returns

mixed Previous value of the property

Defined in

libraries/joomla/error/exception.php

Importing

jimport( 'joomla.error.exception' );

Source Body

public function set($property, $value = null)
{
        $previous = isset($this->$property) ? $this->$property : null;
        $this->$property = $value;
        return $previous;
}

[Edit See Also] SeeAlso:JException/set

Examples

<CodeExamplesForm />