Difference between revisions of "JApplication::isAdmin"
From Joomla! Documentation
m (JoomlaWikiBot moved page JApplication::isAdmin/11.1 to API17:JApplication::isAdmin without leaving a redirect: Robot: Moved page) |
m (preparing for archive only) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Is admin interface? | Is admin interface? | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public function isAdmin () | public function isAdmin () | ||
Line 16: | Line 14: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JApplication::isAdmin source code''' on [[jplatform:application/application.php#cl-961|BitBucket]] | * {{JVer|11.1}} '''JApplication::isAdmin source code''' on [[jplatform:application/application.php#cl-961|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JApplication | + | * {{JVer|11.1}} Class [[API17:JApplication|JApplication]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Application | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] |
− | * [[JApplication::isAdmin|Other versions of JApplication::isAdmin]] | + | * [[API17:JApplication::isAdmin|Other versions of JApplication::isAdmin]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
Line 36: | Line 32: | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JApplication::isAdmin | category=JApplication::isAdmin | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 42: | Line 38: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:19, 24 March 2017
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.
JApplication::isAdmin[edit]
Description[edit]
Is admin interface?
public function isAdmin ()
- Returns boolean True if this application is administrator.
- Defined on line 969 of libraries/joomla/application/application.php
- Since
See also[edit]
- JApplication::isAdmin source code on BitBucket
- Class JApplication
- Subpackage Application
- Other versions of JApplication::isAdmin
User contributed notes[edit]
Code Examples[edit]
$app = JFactory::getApplication();
if( $app->isAdmin() )
//.. do Back End Stuff
else
// .. do Front End stuff