Subversion Repositories PHPX

Compare Revisions

Last modification

Regard whitespace Rev 61 → Rev 60

/trunk/Db/Database.php
694,7 → 694,6
* @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)
{
804,6 → 803,7
* 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)
/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/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