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

Class: Services_ProjectHoneyPot_Response_Result

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

Class Overview


A class to return the result from ProjectHoneyPot.org


Author(s):

Version:

  • Release: 0.6.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
A class to return the result from ProjectHoneyPot.org
  • Property: boolean $suspicious: Is the IP suspicious?
  • Property: boolean $harvester: Is the IP a known harvester?
  • Property: boolean $comment_spammer: Is the IP a known comment spammer?
  • Property: boolean $search_engine: Is the IP a search engine? If this is true, the others ($suspicious, $harvester, $comment_spammer) are false.
  • Property: mixed $last_activity: Last known activity of the IP - the number of days from 0 to 255.
  • Property: int $score: The thread score of this IP. The range of the score is from 0 to 255. 255 means the IP is extremely threatening and 0 indicates that no threat score has been assigned.
  • Property: int $type: Indicates the type of the IP (0, 1, 2, 4) - $suspicious, $harvester, $comment_spammer or $search_engine.
  • Property: string $type_hr: A HR representation of $type.
  • Property: mixed $debug: Yes, no, maybe so?! ;)
  • Author: Till Klampaeckel <till@php.net>
  • Version: Release: 0.6.0
  • Link: http://code.google.com/p/services-projecthoneypot/
  • License: The BSD License


[ Top ]


Method Detail

__construct (Constructor)   [line 78]

Services_ProjectHoneyPot_Response_Result __construct( )

__construct

Sets the defaults for the result.

  • Access: public
  • Uses: self::$_store

[ Top ]

getAll   [line 159]

array getAll( )

Returns all known about this host/ip.
  • Access: public

[ Top ]

getLastActivity   [line 170]

mixed getLastActivity( )

Get the last activity. An integer representation (of the number of days - 0 to 255) or null (if there is none recorded)..
  • Access: public

[ Top ]

getScore   [line 189]

mixed getScore( )

Get the score of the host/ip.

<quote> Threat Scores are a rough guide to determine the threat a particular IP address may pose to your site. Threat Scores should be treated as a rough measure. Threat Scores range from 0-255, however they follow a logrithmic scale which makes it extremely unlikely that a threat score over 200 will ever be returned. </quote>


[ Top ]

getType   [line 199]

array getType( )

Returns which type the current host/ip is. The result is always an array.
  • Access: public

[ Top ]

isCommentSpammer   [line 129]

boolean isCommentSpammer( )

Is comment spammer? true/false
  • Access: public

[ Top ]

isHarvester   [line 139]

boolean isHarvester( )

Is a harvester? true/false
  • Access: public

[ Top ]

isSearchEngine   [line 149]

boolean isSearchEngine( )

Is a search engine? true/false
  • Access: public

[ Top ]

offsetExists   [line 235]

boolean offsetExists( $offset)

  • See: ArrayAccess::offsetExists()
  • Access: public

Parameters:

   $offset   — 

[ Top ]

offsetGet   [line 244]

mixed offsetGet( $offset)

  • See: ArrayAccess::offsetGet()
  • Access: public

Parameters:

   $offset   — 

[ Top ]

offsetSet   [line 253]

void offsetSet( $offset, $value)

  • See: ArrayAccess::offsetSet()
  • Access: public

Parameters:

   $offset   — 
   $value   — 

[ Top ]

offsetUnset   [line 262]

void offsetUnset( $offset)

  • See: ArrayAccess::offsetUnset()
  • Access: public

Parameters:

   $offset   — 

[ Top ]

toArray   [line 211]

array toArray( )

Just returns an array.
  • Access: public
  • Uses: self::$_store

[ Top ]

__get   [line 116]

mixed __get( string $name)

magical __get
  • Access: public
  • Uses: self::$_store

Parameters:

string   $name   —  The name.

[ Top ]

__set   [line 103]

mixed __set( string $name, mixed $value)

magical __set
  • Access: public
  • Uses: self::$_store

Parameters:

string   $name   —  The name.
mixed   $value   —  The value.

[ Top ]

__toString   [line 222]

string __toString( )

Returns a string.
  • Access: public
  • Uses: self::$_store

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:45:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.