API17

Difference between revisions of "JMenu::getItems"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎See also: moving preparation)
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JMenu::getItems|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JMenu::getItems|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JMenu->getItems ($attributes, $values, $firstonly=false)
+
public function getItems (
 +
        $attributes
 +
        $values
 +
        $firstonly=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array
array
+
* '''Defined''' on line 211 of libraries/joomla/application/menu.php
===Defined in===
 
libraries/joomla/application/menu.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JMenu::getItems source code''' on [[jplatform:application/menu.php#cl-203|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JMenu|JMenu]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
 +
* [[API17:JMenu::getItems|Other versions of JMenu::getItems]]
 +
{{SeeAlso:JMenu::getItems}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMenu::getItems|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JMenu::getItems|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JMenu/11.1|JMenu]]
+
===User contributed notes===
* [[JMenu::getItems|Other versions of this method]]
 
{{SeeAlso:JMenu::getItems}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 55: Line 57:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JMenu]][[Category:JMenu::getItems]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 21:11, 11 May 2013

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.

Template:Description:JMenu::getItems [Edit Descripton]

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]

Template:SeeAlso:JMenu::getItems [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />