CI_User_agent::is_robot PHP Method

is_robot() public method

Is Robot
public is_robot ( string $key = NULL ) : boolean
$key string
return boolean
    public function is_robot($key = NULL)
    {
        if (!$this->is_robot) {
            return FALSE;
        }
        // No need to be specific, it's a robot
        if ($key === NULL) {
            return TRUE;
        }
        // Check for a specific robot
        return isset($this->robots[$key]) && $this->robot === $this->robots[$key];
    }