Difference between revisions of "JException/getProperties"
From Joomla! Documentation
< API16:JException
(New page: ===Description===
Returns an associative array of object properties
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JException/getProperties|Edit Des...) |
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>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 49: | Line 49: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 64: | Line 64: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API16]] |
Revision as of 00:05, 13 May 2013
The "API16" 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.
Description[edit]
Returns an associative array of object properties
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
getProperties($public=true)
Parameter Name | Default Value | Description |
---|---|---|
$public | true | $public If true, returns only the public properties |
Returns[edit]
array
Defined in[edit]
libraries/joomla/error/exception.php
Importing[edit]
jimport( 'joomla.error.exception' );
Source Body[edit]
public function getProperties($public = true)
{
$vars = get_object_vars($this);
if ($public)
{
foreach ($vars as $key => $value)
{
if ('_' == substr($key, 0, 1)) {
unset($vars[$key]);
}
}
}
return $vars;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />