<<

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

    The numeric ID of the banlist record.

  • blog_id

    The numeric ID of the blog for which the IP address is banned.

  • ip

    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.

ban_ip($ip, $blog_id)

This convenience method can be used in place of setting the ip and blog_id individually.

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 & COPYRIGHT

Please see "AUTHOR & COPYRIGHT" in MT.

<<