Koowa_Mixin
[ class tree: Koowa_Mixin ] [ index: Koowa_Mixin ] [ all elements ]

Class: KMixinBehavior

Source Location: /libraries/koowa/mixin/behavior.php

Class Overview

KMixinAbstract
   |
   --KMixinBehavior

Behavior Mixin Class


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: KMixinAbstract

KMixinAbstract::__construct()
Object constructor
KMixinAbstract::getHandle()
Get a handle for this object
KMixinAbstract::getMethods()
Get a list of all the available methods
KMixinAbstract::getMixableMethods()
Get the methods that are available for mixin.
KMixinAbstract::getMixer()
Get the mixer object
KMixinAbstract::setMixer()
Set the mixer object
KMixinAbstract::_initialize()
Initializes the options for the object
KMixinAbstract::__call()
Search the mixin method map and call the method or trigger an error
KMixinAbstract::__get()
Overloaded get function
KMixinAbstract::__isset()
Overloaded isset function
KMixinAbstract::__set()
Overloaded set function
KMixinAbstract::__unset()
Overloaded isset function

Class Details

[line 16]
Behavior Mixin Class



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Variables

$_auto_mixin =

[line 33]

Auto mixin behaviors



Tags:

access:  protected

Type:   boolean


[ Top ]

$_behaviors = array()

[line 26]

List of behaviors

Associative array of behaviors, where key holds the behavior identifier string and the value is an identifier object.




Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 40]

KMixinBehavior __construct( $config)

Constructor



Tags:

access:  public


Overrides KMixinAbstract::__construct() (Object constructor)

Parameters:

object An   $config   optional KConfig object with configuration options.

[ Top ]

method addBehavior [line 100]

KObject addBehavior( mixed $behavior, [array $config = array()])

Add one or more behaviors to the controller



Tags:

return:  The mixer object
access:  public


Parameters:

mixed   $behavior   An object that implements KObjectServiceable, KServiceIdentifier object or valid identifier string
array   $config   An optional associative array of configuration settings

[ Top ]

method getBehavior [line 128]

KControllerBehaviorAbstract getBehavior( mixed $behavior, [array $config = array()])

Get a behavior by identifier



Tags:

access:  public


Parameters:

mixed   $behavior   An object that implements KObjectServiceable, KServiceIdentifier object or valid identifier string
array   $config   An optional associative array of configuration settings

[ Top ]

method getBehaviors [line 163]

array getBehaviors( )

Gets the behaviors of the table



Tags:

return:  An asscociate array of table behaviors, keys are the behavior names
access:  public


[ Top ]

method hasBehavior [line 87]

boolean hasBehavior( string $behavior)

Check if a behavior exists



Tags:

return:  TRUE if the behavior exists, FALSE otherwise
access:  public


Parameters:

string   $behavior   The name of the behavior

[ Top ]

method _initialize [line 71]

void _initialize( $config)

Initializes the default configuration for the object

Called from __construct() as a first step of object instantiation.




Tags:

access:  protected


Overrides KMixinAbstract::_initialize() (Initializes the options for the object)

Parameters:

object An   $config   optional KConfig object with configuration options.

[ Top ]


Documentation generated on Sat, 18 May 2013 03:02:58 +0200 by phpDocumentor 1.4.3