base\Event hasHandlers()

hasHandlers() public static method

Returns a value indicating whether there is any handler attached to the specified class-level event.

Note that this method will also check all parent classes to see if there is any handler attached to the named event.

public static boolean hasHandlers ( $class, $name )
$class string|object

The object or the fully qualified class name specifying the class-level event.

$name string

The event name.

return boolean

Whether there is any handler attached to the event.

doc_Yii
2016-10-30 16:51:37
Comments
Leave a Comment

Please login to continue.