PHP Class WPDKUserAgents

Since: 1.6.0
Author: =undo= ([email protected])
Show file Open project: wpxtreme/wpdk

Public Methods

Method Description
crawlers ( ) : array Return a key value pairs array with the complete list of crawler user agents.
isCrawler ( string $user_agent = '' ) : boolean Return TRUE if an user agent or current user agent is a Crawler.
userAgents ( ) : array Return a key value pairs array with the complete list of user agents for type.

Method Details

crawlers() public static method

Return a key value pairs array with the complete list of crawler user agents.
public static crawlers ( ) : array
return array

isCrawler() public static method

Return TRUE if an user agent or current user agent is a Crawler.
public static isCrawler ( string $user_agent = '' ) : boolean
$user_agent string Optional. User agent string or blank for current user agent.
return boolean

userAgents() public static method

Return a key value pairs array with the complete list of user agents for type.
public static userAgents ( ) : array
return array