Actions

API16

Difference between revisions of "JException/set"

From Joomla! Documentation

< API16:JException
(New page: ===Description=== Modifies a property of the object, creating it if it does not already exist. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JExcep...)
 
m (removing red link to edit, no existant pages)
 
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JException/set|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JException/set}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 45: Line 45:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JException/set|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JException/set}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 60: Line 60:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Latest revision as of 00:05, 13 May 2013

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.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />