JApplication/isAdmin: Difference between revisions
From Joomla! Documentation
No edit summary |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Is admin interface? | Is admin interface? | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 28: | Line 26: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=isAdmin | category=isAdmin | ||
category=JApplication | category=JApplication | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API15]] | |||
Latest revision as of 00:16, 25 March 2017
Description
Is admin interface?
<! removed transcluded page call, red link never existed >
Syntax
isAdmin()
Returns
boolean True if this application is administrator.
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
function isAdmin()
{
return ($this->_clientId == 1);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples