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

Class: KDatabaseBehaviorModifiable

Source Location: /libraries/koowa/database/behavior/modifiable.php

Class Overview

KMixinAbstract
   |
   --KBehaviorAbstract
      |
      --KDatabaseBehaviorAbstract
         |
         --KDatabaseBehaviorModifiable

Database Modifiable Behavior


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: KDatabaseBehaviorAbstract

KDatabaseBehaviorAbstract::delete()
Deletes the row form the database.
KDatabaseBehaviorAbstract::execute()
Command handler
KDatabaseBehaviorAbstract::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorAbstract::save()
Saves the row or rowset in the database.

Class: KBehaviorAbstract

KBehaviorAbstract::__construct()
Constructor.
KBehaviorAbstract::execute()
Command handler
KBehaviorAbstract::getHandle()
Get an object handle
KBehaviorAbstract::getIdentifier()
Gets the service identifier.
KBehaviorAbstract::getMixableMethods()
Get the methods that are available for mixin based
KBehaviorAbstract::getPriority()
Get the priority of a behavior
KBehaviorAbstract::getService()
Get an instance of a class based on a class identifier only creating it if it doesn't exist yet.
KBehaviorAbstract::_initialize()
Initializes the options for the object

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 17]
Database Modifiable Behavior



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Methods


method getMixableMethods [line 46]

array getMixableMethods( [ $mixer = null])

Get the methods that are available for mixin based

This function conditionaly mixes the behavior. Only if the mixer has a 'modified_by' or 'modified_by' property the behavior will be mixed in.




Tags:

return:  An array of methods
access:  public


Overrides KDatabaseBehaviorAbstract::getMixableMethods() (Get the methods that are available for mixin based)

Parameters:

object The   $mixer   mixer requesting the mixable methods.

[ Top ]

method _beforeTableUpdate [line 64]

void _beforeTableUpdate( $context)

Set modified information

Requires a 'modified_on' and 'modified_by' column




Tags:

access:  protected


Parameters:

KCommandContext   $context  

[ Top ]

method _initialize [line 27]

void _initialize( $config)

Initializes the options for the object

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




Tags:

access:  protected


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

Parameters:

object An   $config   optional KConfig object with configuration options

[ Top ]


Documentation generated on Sun, 19 May 2013 03:04:56 +0200 by phpDocumentor 1.4.3