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

Class: KDatabaseRowInterface

Source Location: /libraries/koowa/database/row/interface.php

Interface Overview


Database Row Interface


Author(s):

Methods



Class Details

[line 18]
Database Row Interface



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Methods


method count [line 56]

KDatabaseRowAbstract count( )

Count the rows in the database based on the data in the row



Tags:

access:  public


[ Top ]

method delete [line 49]

KDatabaseRowInterface delete( )

Deletes the row form the database.



Tags:

access:  public


[ Top ]

method getData [line 71]

array getData( [boolean $modified = false])

Returns an associative array of the raw data



Tags:

access:  public


Parameters:

boolean   $modified   If TRUE, only return the modified data. Default FALSE

[ Top ]

method getModified [line 88]

array getModified( )

Get a list of columns that have been modified



Tags:

return:  An array of column names that have been modified
access:  public


[ Top ]

method getStatus [line 25]

string getStatus( )

Returns the status of this row.



Tags:

return:  The status value.
access:  public


[ Top ]

method isConnected [line 110]

bool isConnected( )

Test the connected status of the row.



Tags:

access:  public


[ Top ]

method isModified [line 96]

boolean isModified( string $column)

Check if a column has been modified



Tags:

access:  public


Parameters:

string   $column   The column name.

[ Top ]

method isNew [line 103]

bool isNew( )

Checks if the row is new or not



Tags:

access:  public


[ Top ]

method load [line 32]

object If load( )

Load the row from the database.



Tags:

return:  successfull returns the row object, otherwise NULL
access:  public


[ Top ]

method reset [line 63]

KDatabaseRowInterface reset( )

Resets to the default properties



Tags:

access:  public


[ Top ]

method save [line 42]

KDatabaseRowInterface save( )

Saves the row to the database.

This performs an intelligent insert/update and reloads the properties with fresh data from the table on success.




Tags:

access:  public


[ Top ]

method setData [line 81]

KDatabaseRowInterface setData( mixed $data, [boolean $modified = true])

Set the row data



Tags:

access:  public


Parameters:

mixed   $data   Either and associative array, an object or a KDatabaseRow
boolean   $modified   If TRUE, update the modified information for each column being set. Default TRUE

[ Top ]


Documentation generated on Wed, 22 May 2013 03:01:57 +0200 by phpDocumentor 1.4.3