Services_ProjectHoneyPot
[ class tree: Services_ProjectHoneyPot ] [ index: Services_ProjectHoneyPot ] [ all elements ]

Class: Services_ProjectHoneyPot_Response

Source Location: /Services_ProjectHoneyPot-0.6.0/Services/ProjectHoneyPot/Response.php

Class Overview


A class to parse the response from ProjectHoneyPot.org


Author(s):

Version:

  • Release: 0.6.0

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]
A class to parse the response from ProjectHoneyPot.org


[ Top ]


Class Variables

$debug =

[line 68]

  • Access: protected

Type:   boolean


[ Top ]

$respObj =

[line 73]

  • Access: protected

Type:   Net_DNS2_Packet_Response


[ Top ]



Method Detail

__construct (Constructor)   [line 84]

$this __construct( $respObj, [boolean $debug = false])

__construct
  • Throws: InvalidArgumentException
  • Access: public

Parameters:

Net_DNS2_Packet_Response   $respObj     The response.
boolean   $debug     Include entire response from API or not?

[ Top ]

parse   [line 113]

Services_ProjectHoneyPot_Result parse( )

Parse the response into an array or object.

It will look like the following, the object response follows the same pattern (and an example is therefor omitted):

  • $response['suspicious'] -> Is the host/ip suspicious?
  • $response['harvester'] -> Is the host/ip a known harvester?
  • $response['comment_spammer'] -> Is this a known comment spammer?
  • $response['search_engine'] -> Is this a search engine?
  • $response['debug'] -> The entire response for debugging purposes.
  • $response['last_activity'] -> The last known recorded activity.
  • $response['score'] -> A score allocated by ProjectHoneyPot.
  • $response['type'] -> The type (from ProjectHoneyPot) of host.
  • $response['type_hr'] -> Human-readable equivalent of 'type'.

  • Access: public

[ Top ]


Documentation generated on Tue, 01 Nov 2011 17:30:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.