Madmatt\IPLists\Model\IP
Class IP
Synopsis
class IP
extends DataObject
{
- // constants
- const TYPE_IP = 'IP';
- const TYPE_CIDR = 'CIDR';
- // members
- private static string $singular_name = 'IP';
- private static string $table_name = 'IPLists_IP';
- private static array $db = ;
- private static array $belongs_many_many = ;
- private static array $summary_fields = ;
- // methods
- public void getCMSFields()
- public bool contains()
- public void UsedInLists()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Constants
Name | Value |
---|---|
TYPE_IP | 'IP' |
TYPE_CIDR | 'CIDR' |
Members
private
- $belongs_many_many
- $db
- $singular_name
- $summary_fields
- $table_name
Methods
public
- UsedInLists()
- contains() — Determine whether or not this IP rule matches the provided IP address. If this AddressType is a single IP address (e.g. 10.1.2.3), then the string is compared exactly (after trimming). If it's a CIDR range, then the address is compared using the s1lentium/iptools module.
- getCMSFields()