setValues() public method

Set all the table column values at once.
public setValues ( array $columns = null ) : Record
$columns array
return Record
コード例 #1
0
ファイル: Db.php プロジェクト: nicksagona/PopPHP
 /**
  * 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
ファイル: PreparedTest.php プロジェクト: nicksagona/PopPHP
 public function testSetValuesException()
 {
     $this->setExpectedException('Pop\\Db\\Exception');
     $r = new Record();
     $r->setValues(123);
 }