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

Class: KDatabaseBehaviorAbstract

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

Class Overview

KMixinAbstract
   |
   --KBehaviorAbstract
      |
      --KDatabaseBehaviorAbstract

Abstract Database Behavior


Author(s):

Methods


Child classes:

KDatabaseBehaviorModifiable
Database Modifiable Behavior
KDatabaseBehaviorLockable
Database Lockable Behavior
KDatabaseBehaviorIdentifiable
Database Identifiable Behavior
KDatabaseBehaviorOrderable
Database Orderable Behavior
KDatabaseBehaviorCreatable
Database Creatable Behavior
KDatabaseBehaviorSluggable
Database Sluggable Behavior

Inherited Variables

Inherited Methods

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]
Abstract Database Behavior



Tags:

author:  Johan Janssens <johan@nooku.org>
abstract:  


[ Top ]


Class Methods


method delete [line 66]

KDatabaseRowAbstract delete( )

Deletes the row form the database.

This function specialises the KDatabaseRow or KDatabaseRowset delete function and auto-disables the tables command chain to prevent recursive looping.




Tags:

access:  public


[ Top ]

method execute [line 29]

boolean execute( string $name, $context)

Command handler

This function translates the command name to a command handler function of the format '_before[Command]' or '_after[Command]. Command handler functions should be declared protected.




Tags:

return:  Can return both true or false.
access:  public


Overrides KBehaviorAbstract::execute() (Command handler)

Parameters:

string   $name   The command name
object The   $context   command context

[ Top ]

method getMixableMethods [line 86]

array getMixableMethods( [ $mixer = null])

Get the methods that are available for mixin based

This function also dynamically adds a function of format is[Behavior] to allow client code to check if the behavior is callable.




Tags:

return:  An array of methods
access:  public


Overridden in child classes as:

KDatabaseBehaviorModifiable::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorLockable::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorIdentifiable::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorOrderable::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorCreatable::getMixableMethods()
Get the methods that are available for mixin based
KDatabaseBehaviorSluggable::getMixableMethods()
Get the methods that are available for mixin based

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

Parameters:

object The   $mixer   mixer requesting the mixable methods.

[ Top ]

method save [line 47]

KDatabaseRowAbstract save( )

Saves the row or rowset in the database.

This function specialises the KDatabaseRow or KDatabaseRowset save function and auto-disables the tables command chain to prevent recursive looping.




Tags:

return:  or KDatabaseRowsetAbstract
see:  KDatabaseRow::save or KDatabaseRowset::save
access:  public


[ Top ]


Documentation generated on Wed, 22 May 2013 03:00:29 +0200 by phpDocumentor 1.4.3