setValues() публичный Метод

Set all the table column values at once.
public setValues ( array $columns = null ) : Record
$columns array
Результат Record
Пример #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;
 }
Пример #2
0
 public function testSetValuesException()
 {
     $this->setExpectedException('Pop\\Db\\Exception');
     $r = new Record();
     $r->setValues(123);
 }