Subversion Repositories PHPX

Compare Revisions

Last modification

Ignore whitespace Rev 61 → Rev 60

/trunk/Db/Table.php
345,10 → 345,9
* @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()
*/
/trunk/Db/Database.php
694,9 → 694,8
* @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)
{
804,9 → 803,10
* 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,8 → 5,6
/**
* 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