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

Class: WebAPI_Filter

Source Location: /WebAPI/WebAPI/WebAPI_Filter.php

Class Overview


Filtered context or IP


Methods



Class Details

[line 31]
Filtered context or IP

WebAPI_Filter class는 단어 및 IP 필터링을 제공한다.




[ Top ]


Class Methods


static method context [line 76]

static boolean context( string &$text, string &$pattern)

정규식을 이용하여 필터링



Tags:

access:  public


Parameters:

string   &$text   필터링할 문자열
string   &$pattern   필터링 패턴. 정규식은 PCRE를 사용한다.

[ Top ]

static method context_file [line 100]

static boolean context_file( string &$text, string &$patfile)

필터링 파일을 이용하여 필터링



Tags:

access:  public


Parameters:

string   &$text   필터링할 문자열
string   &$patfile   필터링 DB 파일

[ Top ]

static method ip [line 173]

static boolean ip( string &$v)

접속 IP가 주어진 CIDR/MASK에 포함이 되는지 확인



Tags:

access:  public


Parameters:

string   &$v   매칭시킬 IP 또는 IP 블럭
    • 1.1.1.1
    • 1.1.1.1/24
    • 1.1.1.1/255.255.255.0
    • 1.1.1. (1.1.1.0/24)
    • 1.1. (1.1.0.0/16)
    • 1.1.1.1 - 2.2.2.2 (range)

    [ Top ]


    Documentation generated on Tue, 14 May 2019 02:00:50 +0900 by phpDocumentor 1.4.4