Actions

API17

Difference between revisions of "JAccess::getAuthorisedViewLevels"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (Reverted edits by Mykaila298 (talk) to last revision by Doxiki2)
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JAccess::getAuthorisedViewLevels|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JAccess::getAuthorisedViewLevels|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JAccess::getAuthorisedViewLevels ($userId)
+
public static function getAuthorisedViewLevels ($userId)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array List of view levels for which the user is authorised.
array List of view levels for which the user is authorised.
+
* '''Defined''' on line 300 of libraries/joomla/access/access.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/access/access.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JUser::getAuthorisedViewLevels/11.1|JUser::getAuthorisedViewLevels]]
* [[JUser/getAuthorisedViewLevels/11.1|JUser::getAuthorisedViewLevels]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JAccess::getAuthorisedViewLevels source code''' on [[jplatform:access/access.php#cl-292|BitBucket]]
 +
* {{JVer|11.1}} Class [[JAccess/11.1|JAccess]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Access/11.1|Access]]
 +
* [[JAccess::getAuthorisedViewLevels|Other versions of JAccess::getAuthorisedViewLevels]]
 +
{{SeeAlso:JAccess::getAuthorisedViewLevels}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JAccess::getAuthorisedViewLevels|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JAccess::getAuthorisedViewLevels|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JAccess/11.1|JAccess]]
+
===User contributed notes===
* [[JAccess::getAuthorisedViewLevels|Other versions of this method]]
+
{{SeeAlso:JAccess::getAuthorisedViewLevels}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 48: Line 46:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JAccess]][[Category:JAccess::getAuthorisedViewLevels]]</noinclude>
 
<noinclude>[[Category:JAccess]][[Category:JAccess::getAuthorisedViewLevels]]</noinclude>

Revision as of 10:15, 5 September 2011

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.

Joomla 11.1 JAccess::getAuthorisedViewLevels

Description

Method to return a list of view levels for which the user is authorised.

Description:JAccess::getAuthorisedViewLevels [Edit Descripton]

public static function getAuthorisedViewLevels ($userId)
Parameter Type Default Description
$userId integer Id of the user for which to get the list of authorised view levels.
  • Returns array List of view levels for which the user is authorised.
  • Defined on line 300 of libraries/joomla/access/access.php
  • Since Joomla 11.1
  • Referenced by

See also

SeeAlso:JAccess::getAuthorisedViewLevels [Edit See Also]

User contributed notes

<CodeExamplesForm />