AAAAget('id'); $db = JFactory::getDBO(); $db->setQuery("SELECT * FROM #__googleSearch_cse_conf LIMIT 1"); $rows = $db->loadObjectList(); $r = $rows[0]; return $r; } static function getItemid(&$params) { global $mainframe; $db = JFactory::getDBO(); $user = JFactory::getUser(); $userId = (int) $user->get('id'); $db = JFactory::getDBO(); $db->setQuery("SELECT id FROM #__menu where link LIKE 'index.php?option=com_googlesearchcse&view=googleSearch%' LIMIT 1"); $Itemid = $db->loadResult(); return $Itemid; } }