Table of Contents

getItemCount

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplicationHelper Method getItemCount Reference getItemCount() Never Work in Progress

Count the items in the menu for a certain type.

Syntax

integer getItemCount ( $type )

$type string is a string containing the type of menu item to count.

Examples

Example

echo JApplicationHelper::getItemCount( 'content_blog_section' );

might produce

Result

2