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

Class: Services_ProjectHoneyPot_Response

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

Class Overview


A class to parse the response from ProjectHoneyPot.org


Author(s):

Version:

  • Release: 0.5.2

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

parse   [line 89]

mixed parse( SimpleXML $respObj, [String $format = 'array'], [boolean $debug = false])

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'.

  • See: Services_ProjectHoneyPot_Result

Parameters:

SimpleXML   $respObj   —  The response.
String   $format   —  Do we return an array or object?
boolean   $debug   —  Include entire response from API or not?

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:49:18 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.