IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\Helper\OnBeforeUnloadEventHandlerNonNull Class Reference

Public Member Functions

string __invoke (... $args)
 Make this callback interface callable.
 

Static Public Member Functions

static Wikimedia IDLeDOM OnBeforeUnloadEventHandlerNonNull cast ( $f)
 Create a OnBeforeUnloadEventHandlerNonNull from a callable.
 

Protected Member Functions

mixed _getMissingProp (string $prop)
 Handle an attempt to get a non-existing property on this object.
 
 _setMissingProp (string $prop, $value)
 Handle an attempt to set a non-existing property on this object.
 

Member Function Documentation

◆ __invoke()

string Wikimedia\IDLeDOM\Helper\OnBeforeUnloadEventHandlerNonNull::__invoke ( $args)

Make this callback interface callable.

Parameters
mixed...$args
Returns
?string

◆ _getMissingProp()

mixed Wikimedia\IDLeDOM\Helper\OnBeforeUnloadEventHandlerNonNull::_getMissingProp ( string $prop)
protected

Handle an attempt to get a non-existing property on this object.

The default implementation raises an exception but the implementor can choose a different behavior: return null (like JavaScript), dynamically create the property, etc.

Parameters
string$propthe name of the property requested
Returns
mixed

◆ _setMissingProp()

Wikimedia\IDLeDOM\Helper\OnBeforeUnloadEventHandlerNonNull::_setMissingProp ( string $prop,
$value )
protected

Handle an attempt to set a non-existing property on this object.

The default implementation raises an exception but the implementor can choose a different behavior: ignore the operation (like JavaScript), dynamically create the property, etc.

Parameters
string$propthe name of the property requested
mixed$valuethe value to set

◆ cast()

static Wikimedia IDLeDOM OnBeforeUnloadEventHandlerNonNull Wikimedia\IDLeDOM\Helper\OnBeforeUnloadEventHandlerNonNull::cast ( $f)
static

Create a OnBeforeUnloadEventHandlerNonNull from a callable.

Parameters
callable | \Wikimedia\IDLeDOM\OnBeforeUnloadEventHandlerNonNull$f
Returns
\Wikimedia\IDLeDOM\OnBeforeUnloadEventHandlerNonNull
Parameters
callable$f
Event$event
Returns
?string

The documentation for this class was generated from the following file: