API17

Difference between revisions of "JHtmlCategory::options"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (preparing for archive only)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Returns an array of categories for the given extension.  
 
Returns an array of categories for the given extension.  
  
{{Description:JHtmlCategory::options}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JHtmlCategory::options|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlCategory::options ($extension, $config=array('filter.published'=> array(0, 1)))
+
public static function options (
 +
        $extension
 +
        $config=array('filter.published'=> array(0
 +
        1
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 31:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' array
array
+
* '''Defined''' on line 36 of libraries/joomla/html/html/category.php
===Defined in===
 
libraries/joomla/html/html/category.php
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JHtmlCategory::options source code''' on [[jplatform:html/html/category.php#cl-28|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JHtmlCategory::options|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JHtmlCategory|JHtmlCategory]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* [[JHtmlCategory/11.1|JHtmlCategory]]
+
* [[API17:JHtmlCategory::options|Other versions of JHtmlCategory::options]]
* [[JHtmlCategory::options|Other versions of this method]]
+
 
{{SeeAlso:JHtmlCategory::options}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JHtmlCategory::options
 
category=JHtmlCategory::options
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JHtmlCategory]][[Category:JHtmlCategory::options]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:11, 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 JHtmlCategory::options[edit]

Description[edit]

Returns an array of categories for the given extension.


public static function options (
        $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 36 of libraries/joomla/html/html/category.php

See also[edit]


User contributed notes[edit]

Code Examples[edit]