setValues() public method

Set all the table column values at once.
public setValues ( array $columns = null ) : Record
$columns array
return Record
Esempio n. 1
0
 /**
  * Method to write to the log
  *
  * @param  array $logEntry
  * @param  array $options
  * @return \Pop\Log\Writer\Db
  */
 public function writeLog(array $logEntry, array $options = array())
 {
     $this->table->setValues($logEntry)->save();
     return $this;
 }
Esempio n. 2
0
 public function testSetValuesException()
 {
     $this->setExpectedException('Pop\\Db\\Exception');
     $r = new Record();
     $r->setValues(123);
 }