Actions

API17

Difference between revisions of "JHtmlAccess::level"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlAccess::level|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlAccess::level|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</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 42:
 
|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 50:
 
|-
 
|-
 
|}
 
|}
===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===
 +
* {{JVer|11.1}} '''JHtmlAccess::level source code''' on [[jplatform:html/html/access.php#cl-31|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlAccess/11.1|JHtmlAccess]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlAccess::level|Other versions of JHtmlAccess::level]]
 +
{{SeeAlso:JHtmlAccess::level}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlAccess::level|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlAccess::level|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlAccess/11.1|JHtmlAccess]]
+
===User contributed notes===
* [[JHtmlAccess::level|Other versions of this method]]
+
{{SeeAlso:JHtmlAccess::level}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 66: Line 69:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlAccess]][[Category:JHtmlAccess::level]]</noinclude>
 
<noinclude>[[Category:JHtmlAccess]][[Category:JHtmlAccess::level]]</noinclude>

Revision as of 21:05, 27 April 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 JHtmlAccess::level

Description

Displays a list of the available access view levels.

Description:JHtmlAccess::level [Edit Descripton]

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

SeeAlso:JHtmlAccess::level [Edit See Also]

User contributed notes

<CodeExamplesForm />