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 IClassBehavior

IClassBehavior interface is implements behaviors across all instances of a particular class

Any calls to functions not present in the original object but to behaviors derived from this class, will have inserted as the first argument parameter the object containing the behavior.

For example:

$objWithClassBehavior->MethodOfClassBehavior(1, 20);

will be acted within the class behavior like this:

public function MethodOfClassBehavior($object, $firstParam, $secondParam){
     // $object === $objWithClassBehavior, $firstParam === 1, $secondParam === 20
}

This also holds for 'dy' events as well. For dynamic events, method arguments would be:

public function dyMethodOfClassBehavior($object, $firstParam, $secondParam, $callchain){
     // $object === $objWithClassBehavior, $firstParam === 1, $secondParam === 20, $callchain instanceof TCallChain
}
IClassBehavior implements IBaseBehavior

Direct known implementers

TClassBehavior
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 inherited from IBaseBehavior
attach(), detach()
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