Support Joomla!

references:joomla.framework:application:jcomponenthelper-getinfo

Table of Contents

getInfo

API Package Class phpDocumentor Last reviewed Doc status
Joomla.Framework Application JComponentHelper JComponentHelper->getInfo never Work in progress

Gets information about a component.

During the first invokation of this method, all the entries are retrieved from the components table. Subsequent calls will return the record for the specified component.

Syntax

stdClass &getInfo ( $name )

$name string is a string containing the name of the component for which to obtain information.

Examples

Example

$info =& JComponentHelper::getInfo( 'com_weblinks' );
print_r( $info );

might produce

Result

stdClass Object
(
    [id] => 4
    [name] => Web Links
    [link] => option=com_weblinks
    [menuid] => 0
    [parent] => 0
    [admin_menu_link] => 
    [admin_menu_alt] => Manage Weblinks
    [option] => com_weblinks
    [ordering] => 0
    [admin_menu_img] => js/ThemeOffice/component.png
    [iscore] => 0
    [params] => 
    [enabled] => 1
)

 
references/joomla.framework/application/jcomponenthelper-getinfo.txt (918 views) · Last modified: 2007/07/21 19:59