Subversion Repositories PHPX

Compare Revisions

Last modification

Ignore whitespace Rev 60 → Rev 61

/trunk/Db/Database.php
694,8 → 694,9
* @param array|string $where
* Only the records matching this condition are updated
* @return bool
* @see PDOStatement::execute()
*/
public function update($tables, array $updates, $where = null)
public function update ($tables, array $updates, $where = null)
{
if (!$tables)
{
803,10 → 804,9
* and the values are not in column order (default: <code>null</code>);
* is ignored otherwise. <strong>You SHOULD NOT rely on column order.</strong>
* @return bool
* <code>true</code> if successful, <code>false</code> otherwise
* @see PDOStatement::execute()
*/
public function insert($table, $values, $cols = null)
public function insert ($table, $values, $cols = null)
{
if ($cols != null)
{
/trunk/Db/Mapper.php
5,6 → 5,8
/**
* Generic abstract database mapper class
*
* @property-read \PointedEars\PHPX\Db\Table $table
* The <code>Table</code> for this mapper
* @author Thomas Lahn
*/
abstract class Mapper extends \PointedEars\PHPX\AbstractModel
/trunk/Db/Table.php
345,9 → 345,10
* @param array $data
* Associative array of column-value pairs to be updated/inserted
* @param string|array $condition
* If there are no records matching this condition, a row will be inserted;
* otherwise matching records are updated
* If there are no records matching this condition, a row
* will be inserted; otherwise matching records are updated.
* @return bool
* The return value of Table::update() or Table::insert()
* @see Table::update()
* @see Table::insert()
*/