API17

Difference between revisions of "JMenu::getItems"

From Joomla! Documentation

m (→‎See also: moving preparation)
m (clean up)
Line 4: Line 4:
 
Gets menu items by attribute.  
 
Gets menu items by attribute.  
  
{{Description:JMenu::getItems}}
+
{{subst:Description:JMenu::getItems}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JMenu::getItems|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
public function getItems (
 
public function getItems (
Line 45: Line 43:
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
 
* [[API17:JMenu::getItems|Other versions of JMenu::getItems]]
 
* [[API17:JMenu::getItems|Other versions of JMenu::getItems]]
{{SeeAlso:JMenu::getItems}}
+
{{subst:SeeAlso:JMenu::getItems}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JMenu::getItems|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />

Revision as of 10:51, 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 JMenu::getItems[edit]

Description[edit]

Gets menu items by attribute.

{{subst:Description:JMenu::getItems}}

public function getItems (
        $attributes
        $values
        $firstonly=false
)
Parameter Type Default Description
$attributes string The field name
$values string The value of the field
$firstonly boolean false If true, only returns the first item found
  • Returns array
  • Defined on line 211 of libraries/joomla/application/menu.php

See also[edit]

{{subst:SeeAlso:JMenu::getItems}}

User contributed notes[edit]

<CodeExamplesForm />