API17

Difference between revisions of "JHtmlAccess::level"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Displays a list of the available access view levels.  
 
Displays a list of the available access view levels.  
  
{{Description:JHtmlAccess::level}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JHtmlAccess::level|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlAccess::level ($name, $selected, $attribs= '', $params=true, $id=false)
+
public static function level (
 +
        $name
 +
        $selected
 +
        $attribs= ''
 +
        $params=true
 +
        $id=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 40:
 
|mixed
 
|mixed
 
|true
 
|true
|True to add "All Sections" option or and array of option
+
|True to add "All Sections" option or and array of options
 
|-
 
|-
 
|$id
 
|$id
Line 45: Line 48:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string The required HTML for the SELECT tag.
string The required HTML for the SELECT tag.
+
* '''Defined''' on line 39 of libraries/joomla/html/html/access.php
===Defined in===
 
libraries/joomla/html/html/access.php (line 39)
 
* see source code in [[jplatform:html/html/access.php#cl-39|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JHtmlAccess::level source code''' on [[jplatform:html/html/access.php#cl-31|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JHtmlAccess::level|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JHtmlAccess|JHtmlAccess]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* [[JHtmlAccess/11.1|JHtmlAccess]]
+
* [[API17:JHtmlAccess::level|Other versions of JHtmlAccess::level]]
* [[JHtmlAccess::level|Other versions of this method]]
+
 
{{SeeAlso:JHtmlAccess::level}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JHtmlAccess::level
 
category=JHtmlAccess::level
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JHtmlAccess]][[Category:JHtmlAccess::level]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:10, 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.

Joomla 11.1 JHtmlAccess::level[edit]

Description[edit]

Displays a list of the available access view levels.


public static function level (
        $name
        $selected
        $attribs= ''
        $params=true
        $id=false
)
Parameter Type Default Description
$name string The form field name.
$selected string The name of the selected section.
$attribs string Additional attributes to add to the select field.
$params mixed true True to add "All Sections" option or and array of options
$id string false The form field id
  • Returns string The required HTML for the SELECT tag.
  • Defined on line 39 of libraries/joomla/html/html/access.php

See also[edit]


User contributed notes[edit]

Code Examples[edit]