CakeFest 2024: The Official CakePHP Conference

Event::setPriority

(PECL event >= 1.2.6-beta)

Event::setPrioritySet event priority

Beschreibung

public Event::setPriority( int $priority ): bool

Set event priority.

Parameter-Liste

priority

The event priority.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

add a note

User Contributed Notes 1 note

up
0
Igor K
3 years ago
$priority argument should be declared as float, because function expects float value in range between 0 and 1.
Otherwise you get "Unable to set event priority" error.
To Top