/** * retrieve a select list of User-Agent detectors * * @param $agentsWanted Array. A list of user-agent detectors to retrieve. If nothing is supplied, return the entire default list of user-agent detectors. * @return array */ public function getUserAgentDetectors($agentsWanted = array()) { if (empty($agentsWanted)) { return $this->userAgents; } $retrievedAgents = ArrayLib::extractIfKeysExist($this->userAgents, $agentsWanted); return $retrievedAgents; }