Event EventConfig::__construct

(PECL event >= 1.2.6-beta)

EventConfig::__construct — EventConfig 객체를 구성합니다.


설명

public EventConfig::__construct()

EventBase::__construct() 생성자에 전달할 수 있는 EventConfig 객체를 생성합니다.


매개변수

이 함수에는 매개변수가 없습니다.


반환 값

EventConfig 객체를 반환합니다.


Examples

예제 #1 EventConfig::__construct() 예제

                  
<?php
// Avoiding "select" method
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
    echo "'select' method avoided\n";
}

// Create event_base associated with the config
$base = new EventBase($cfg);

/* Now $base is configured to avoid select backend(method) */
?>
                  
                

기타