phpday 2027 - Call for Papers

php_user_filter sınıfı

(PHP 5, PHP 7, PHP 8)

Giriş

Bu sınıfın çocukları stream_filter_register() işlevine aktarılır. Bu sınıfı ilklendirmek için __construct değil php_user_filter::onCreate() çağrılmalıdır.

Sınıf Sözdizimi

class php_user_filter {
/* Özellikler */
public string $filtername = "";
public mixed $params = "";
public ?resource $stream = null;
/* Yöntemler */
public function filter(
    resource $giriş,
    resource $çıkş,
    int &$tüketilen,
    bool $kapanış
): int
public function onClose(): void
public function onCreate(): bool
}

Özellikler

filtername

stream_filter_append() tarafından belirlenen süzgeç ismi.

params

stream

İçindekiler

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top