Interface IInstanceCheck
IInstanceCheck This interface allows objects to determine their own
'instanceof' results when TComponent::isa()
is called. This is important
with behaviors because behaviors may want to look like particular objects other
than themselves.
Package: System
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Brad Anderson <javalizard@mac.com>
Version: $Id$
Since: 3.2.3
Located at TComponent.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Brad Anderson <javalizard@mac.com>
Version: $Id$
Since: 3.2.3
Located at TComponent.php
public
boolean|null
|
#
isinstanceof( class|string $class, object $instance = null )
The method checks $this or, if needed, the parameter $instance is of type class. In the case of a Class Behavior, the instance to which the behavior is attached may be important to determine if $this is an instance of a particular class. |