Subversion Repositories PHPX

Rev

Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 61
Line 343... Line 343...
343
  * Inserts a row into the table or updates an existing one
343
  * Inserts a row into the table or updates an existing one
344
  *
344
  *
345
  * @param array $data
345
  * @param array $data
346
  *   Associative array of column-value pairs to be updated/inserted
346
  *   Associative array of column-value pairs to be updated/inserted
347
  * @param string|array $condition
347
  * @param string|array $condition
348
  *   If there are no records matching this condition, a row will be inserted;
348
  *   If there are no records matching this condition, a row
349
  *   otherwise matching records are updated
349
  *   will be inserted; otherwise matching records are updated.
350
  * @return bool
350
  * @return bool
-
 
351
  *   The return value of Table::update() or Table::insert()
351
  * @see Table::update()
352
  * @see Table::update()
352
  * @see Table::insert()
353
  * @see Table::insert()
353
  */
354
  */
354
  public function updateOrInsert($data, array $condition = null)
355
  public function updateOrInsert($data, array $condition = null)
355
  {
356
  {