PHP 8.5.0 RC 2 available for testing

EventConfig::__construct

(PECL event >= 1.2.6-beta)

EventConfig::__construct β€” Construit un objet EventConfig

Description

public EventConfig::__construct()

Construit un objet EventConfig qui pourra Γͺtre passΓ© au constructeur EventBase::__construct().

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Exemples

Exemple #1 Exemple avec EventConfig::__construct()

<?php
// On ignore la mΓ©thode "select"
$cfg = new EventConfig();
if (
$cfg->avoidMethod("select")) {
echo
"MΓ©thode 'select' ignorΓ©e\n";
}

// CrΓ©e un event_base associΓ© avec la configuration
$base = new EventBase($cfg);

/* Maintenant, $base est configurΓ© pour ignorer la mΓ©thode select */
?>

Voir aussi

οΌ‹add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top