====== getInfo ====== ^ API ^ Package ^ Class ^ phpDocumentor ^ Last reviewed ^ Doc status ^ | {{http://api.joomla.org/media/images/package.png?nolink}} [[references:joomla.framework|Joomla.Framework]] | {{http://api.joomla.org/media/images/package.png?nolink}} [[references:joomla.framework/#Application|Application]] | {{http://api.joomla.org/media/images/Class.png?nolink}} [[JComponentHelper]] | [[http://api.joomla.org/Joomla-Framework/Application/JComponentHelper.html#getInfo|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 ===== $info =& JComponentHelper::getInfo( 'com_weblinks' ); print_r( $info ); might produce 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 ) ---- ~~DISCUSSION~~