NAME
MT::IPBanList - Movable Type IP comment banning record
SYNOPSIS
use MT::IPBanList;
my $ban = MT::IPBanList->new;
$ban->blog_id($blog->id);
$ban->ip($ip_address);
$ban->save
or die $ban->errstr;
DESCRIPTION
An MT::IPBanList object represents a single IP address that is banned from commenting on one of your blogs.
USAGE
As a subclass of MT::Object, MT::IPBanList inherits all of the data-management and -storage methods from that class; thus you should look at the MT::Object documentation for details about creating a new object, loading an existing object, saving an object, etc.
DATA ACCESS METHODS
The MT::BanList object holds the following pieces of data. These fields can be accessed and set using the standard data access methods described in the MT::Object documentation.
- id
- blog_id
- ip
The numeric ID of the banlist record.
The numeric ID of the blog for which the IP address is banned.
The IP address. This can be a partial IP address--for example, a partial address of 10.100 will block the IP addresses 10.100.2.1, 10.100.100.3, etc.
DATA LOOKUP
In addition to numeric ID lookup, you can look up or sort records by any combination of the following fields. See the load documentation in MT::Object for more information.
- blog_id
- ip
AUTHOR & COPYRIGHTS
Please see the MT manpage for author, copyright, and license information.
