PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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
Methods summary
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.

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.

Parameters

$class
class|string
the component that this behavior is checking if it is an instanceof.
$instance
object
the object which the behavior is attached to. default: null

Returns

boolean|null
if the this or the instance is of type class. When null, no information could be derived and the default mechanisms take over.
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO