public function AcquiaPurgeOddities::has in Acquia Purge 7
Check if the given odd behavior flag has been reported.
Parameters
string $oddity: Short and simple string describing the behavior, e.g. '403' or 'geoip'.
Return value
boolean TRUE when found, FALSE otherwise.
File
- lib/
AcquiaPurgeOddities.php, line 57 - Contains AcquiaPurgeOddities.
Class
- AcquiaPurgeOddities
- Tracks suspicious behavior through string flags.
Code
public function has($oddity) {
return in_array($oddity, $this->oddities);
}