/** * Get the component info * * @access public * @param string $name The component name * @param boolean $string If set and a component does not exist, the enabled attribue will be set to false * @return object A JComponent object */ function &getComponent($name, $strict = false) { $result = null; $components = JComponentHelper::_load(); if (isset($components[$name])) { $result =& $components[$name]; } else { $result = new stdClass(); $result->enabled = $strict ? false : true; $result->params = null; } return $result; }