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

Class: BlackList

Source Location: /plugins/throttling/client/Throttling.php

Class Overview

ListInFile
   |
   --BlackList

An IP can't be staticly add in the list.


Variables

Methods


Inherited Variables

Inherited Methods

Class: ListInFile

ListInFile::__construct()
ListInFile constructor.
ListInFile::readLine()
Convert a raw line from the file to it's internal representation.
ListInFile::sync()
Write the full list to the file.
ListInFile::writeLine()
Return a formated record.

Class Details

[line 216]
An IP can't be staticly add in the list.



[ Top ]


Class Variables

$period =

[line 221]



Tags:

var:  The BlackList duration in seconds.
access:  protected

Type:   integer


[ Top ]



Class Methods


constructor __construct [line 227]

BlackList __construct( mixed $file, mixed $period)



Tags:

access:  public
see:  ListInFile::__construct()


Overrides ListInFile::__construct() (ListInFile constructor.)

[ Top ]

method add [line 254]

void add( String $ip, Integer $now)

Add an ip to the black list.



Tags:

access:  public


Parameters:

String   $ip   ip
Integer   $now   now when the ip have been added

[ Top ]

method clearList [line 235]

void clearList( mixed $now)

Remove all the IP from list if they have



Tags:

access:  public


[ Top ]

method contains [line 264]

Boolean contains( String $ip)

Returns whatever the passed ip is included in the blacklist.



Tags:

access:  public


Parameters:

String   $ip   ip

[ Top ]


Documentation generated on Thu, 04 Sep 2008 11:40:00 +0200 by phpDocumentor 1.3.0RC3