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

Class TBehavior

TBehavior is a convenient base class for behavior classes.

TComponent
Extended by TBehavior implements IBehavior
Package: System\Util
Copyright: Copyright © 2008-2009 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.2.3
Located at Util/TBehavior.php
Methods summary
public array
# events( )

Declares events and the corresponding event handler methods. The events are defined by the owner component, while the handler methods by the behavior class. The handlers will be attached to the corresponding events when the behavior is attached to the owner component; and they will be detached from the events when the behavior is detached from the component.

Declares events and the corresponding event handler methods. The events are defined by the owner component, while the handler methods by the behavior class. The handlers will be attached to the corresponding events when the behavior is attached to the owner component; and they will be detached from the events when the behavior is detached from the component.

Returns

array
events (array keys) and the corresponding event handler methods (array values).
public
# attach( TComponent $owner )

Attaches the behavior object to the component. The default implementation will set the owner property and attach event handlers as declared in TBehavior::events(). Make sure you call the parent implementation if you override this method.

Attaches the behavior object to the component. The default implementation will set the owner property and attach event handlers as declared in TBehavior::events(). Make sure you call the parent implementation if you override this method.

Parameters

$owner
TComponent
the component that this behavior is to be attached to.

Implementation of

IBaseBehavior::attach()
public
# detach( TComponent $owner )

Detaches the behavior object from the component. The default implementation will unset the owner property and detach event handlers declared in TBehavior::events(). Make sure you call the parent implementation if you override this method.

Detaches the behavior object from the component. The default implementation will unset the owner property and detach event handlers declared in TBehavior::events(). Make sure you call the parent implementation if you override this method.

Parameters

$owner
TComponent
the component that this behavior is to be detached from.

Implementation of

IBaseBehavior::detach()
public TComponent
# getOwner( )

Returns

TComponent
the owner component that this behavior is attached to.
public boolean
# getEnabled( )

Returns

boolean
whether this behavior is enabled

Implementation of

IBehavior::getEnabled()
public
# setEnabled( boolean $value )

Parameters

$value
boolean
whether this behavior is enabled

Implementation of

IBehavior::setEnabled()
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
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