InsertOrUpdateQuery Class Reference
[Dynamic query builder]

Single roof for InsertQuery and UpdateQuery. More...

Inheritance diagram for InsertOrUpdateQuery:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 setTable ($table)
 getTable ()
 set ($field, $value=null)
 
Returns:
InsertOrUpdateQuery

 drop ($field)
 
Exceptions:
MissingElementException 

 lazySet ($field, $object=null)
 
Returns:
InsertOrUpdateQuery

 setBoolean ($field, $value=false)
 
Returns:
InsertOrUpdateQuery

 arraySet ($fields)
 Adds values from associative array.

Protected Attributes

 $table = null
 $fields = array()


Detailed Description

Single roof for InsertQuery and UpdateQuery.

Definition at line 18 of file InsertOrUpdateQuery.class.php.


Member Function Documentation

InsertOrUpdateQuery::setTable ( table  )  [abstract]

Reimplemented in InsertQuery, and UpdateQuery.

InsertOrUpdateQuery::getTable (  ) 

Implements SQLTableName.

Definition at line 27 of file InsertOrUpdateQuery.class.php.

InsertOrUpdateQuery::set ( field,
value = null 
)

Returns:
InsertOrUpdateQuery

Definition at line 35 of file InsertOrUpdateQuery.class.php.

InsertOrUpdateQuery::drop ( field  ) 

Exceptions:
MissingElementException 

Returns:
InsertOrUpdateQuery

Definition at line 46 of file InsertOrUpdateQuery.class.php.

Referenced by StorableDAO::inject().

InsertOrUpdateQuery::lazySet ( field,
object = null 
)

Returns:
InsertOrUpdateQuery

Definition at line 59 of file InsertOrUpdateQuery.class.php.

InsertOrUpdateQuery::setBoolean ( field,
value = false 
)

Returns:
InsertOrUpdateQuery

Definition at line 84 of file InsertOrUpdateQuery.class.php.

InsertOrUpdateQuery::arraySet ( fields  ) 

Adds values from associative array.

Returns:
InsertOrUpdateQuery

Definition at line 99 of file InsertOrUpdateQuery.class.php.

References $fields.


Member Data Documentation

InsertOrUpdateQuery::$table = null [protected]

Definition at line 22 of file InsertOrUpdateQuery.class.php.

Referenced by UpdateQuery::__construct(), UpdateQuery::from(), UpdateQuery::hasJoinedTable(), InsertQuery::into(), UpdateQuery::join(), UpdateQuery::leftJoin(), UpdateQuery::setTable(), and InsertQuery::setTable().

InsertOrUpdateQuery::$fields = array() [protected]

Definition at line 23 of file InsertOrUpdateQuery.class.php.

Referenced by arraySet(), and InsertQuery::toDialectString().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:48 2007 for onPHP by  doxygen 1.5.4