Property | Type | Description | |
---|---|---|---|
$crawlers | Crawlers object. | ||
$exclusions | Exclusions object. | ||
$httpHeaders | array | Headers that contain a user agent. | |
$matches | array | Store regex matches. | |
$uaHttpHeaders | Headers object. | ||
$userAgent | null | The user agent. |
Method | Description | |
---|---|---|
__construct ( array $headers = null, $userAgent = null ) | Class constructor. | |
getExclusions ( ) : string | Build the replacement regex. | |
getMatches ( ) : string | null | Return the matches. | |
getRegex ( ) : string | Build the user agent regex. | |
getUaHttpHeaders ( ) : array | Return user agent headers. | |
isCrawler ( string $userAgent = null ) : boolean | Check user agent string against the regex. | |
setHttpHeaders ( array $httpHeaders = null ) | Set HTTP headers. | |
setUserAgent ( string $userAgent = null ) | Set the user agent. |
public __construct ( array $headers = null, $userAgent = null ) | ||
$headers | array |
public getExclusions ( ) : string | ||
return | string |
public getMatches ( ) : string | null | ||
return | string | null |
public getUaHttpHeaders ( ) : array | ||
return | array |
public setHttpHeaders ( array $httpHeaders = null ) | ||
$httpHeaders | array |
public setUserAgent ( string $userAgent = null ) | ||
$userAgent | string |
protected Crawlers,Jaybizzle\CrawlerDetect\Fixtures $crawlers | ||
return |
protected Exclusions,Jaybizzle\CrawlerDetect\Fixtures $exclusions | ||
return |
protected array $httpHeaders | ||
return | array |
protected Headers,Jaybizzle\CrawlerDetect\Fixtures $uaHttpHeaders | ||
return |