[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
(no description)
Author: | Brandon Black <[email protected]> |
File Size: | 277 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
IPSet:: (5 methods):
__construct()
addCidr()
match()
recOptimize()
recCompress()
__construct( array $cfg ) X-Ref |
__construct() instantiate the object from an array of CIDR specs param: array $cfg array of IPv[46] CIDR specs as strings return: IPSet new IPSet object |
addCidr( $cidr ) X-Ref |
Add a single CIDR spec to the internal matching trees param: string $cidr string CIDR spec, IPv[46], optional /mask (def all-1's) |
match( $ip ) X-Ref |
Match an IP address against the set param: string $ip string IPv[46] address return: boolean true is match success, false is match failure |
recOptimize( &$node ) X-Ref |
Recursively merges adjacent nets into larger supernets param: array &$node Tree node to optimize, by-reference |
recCompress( &$node, $curBit, $maxCompStart ) X-Ref |
Recursively compresses a tree param: array &$node Tree node to compress, by-reference param: integer $curBit current depth in the tree param: integer $maxCompStart maximum depth at which compression can start, family-specific |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |