API17

Difference between revisions of "JHtmlCategory::categories"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlCategory::categories|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlCategory::categories|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlCategory::categories ($extension, $config=array('filter.published'=> array(0, 1)))
+
public static function categories (
 +
        $extension
 +
        $config=array('filter.published'=> array(0
 +
        1
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 33:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array
array
+
* '''Defined''' on line 88 of libraries/joomla/html/html/category.php
===Defined in===
 
libraries/joomla/html/html/category.php (line 88)
 
* see source code in [[jplatform:html/html/category.php#cl-88|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtmlCategory::categories source code''' on [[jplatform:html/html/category.php#cl-80|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlCategory/11.1|JHtmlCategory]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlCategory::categories|Other versions of JHtmlCategory::categories]]
 +
{{SeeAlso:JHtmlCategory::categories}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlCategory::categories|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlCategory::categories|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlCategory/11.1|JHtmlCategory]]
+
===User contributed notes===
* [[JHtmlCategory::categories|Other versions of this method]]
 
{{SeeAlso:JHtmlCategory::categories}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 51: Line 52:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlCategory]][[Category:JHtmlCategory::categories]]</noinclude>
 
<noinclude>[[Category:JHtmlCategory]][[Category:JHtmlCategory::categories]]</noinclude>

Revision as of 21:06, 27 April 2011

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 JHtmlCategory::categories[edit]

Description[edit]

Returns an array of categories for the given extension.

Template:Description:JHtmlCategory::categories [Edit Descripton]

public static function categories (
        $extension
        $config=array('filter.published'=> array(0
        1
)
Parameter Type Default Description
$extension string The extension option.
$config array array('filter.published'=> array(0, 1)) An array of configuration options. By default, only published and unpulbished categories are returned.
  • Returns array
  • Defined on line 88 of libraries/joomla/html/html/category.php

See also[edit]

Template:SeeAlso:JHtmlCategory::categories [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />