예제 #1
0
파일: Insert.php 프로젝트: phpf/micro
 public function __construct(FluentPDO $fpdo, $table, $values)
 {
     $clauses = array('INSERT INTO' => array($this, 'getClauseInsertInto'), 'VALUES' => array($this, 'getClauseValues'), 'ON DUPLICATE KEY UPDATE' => array($this, 'getClauseOnDuplicateKeyUpdate'));
     parent::__construct($fpdo, $clauses);
     $this->statements['INSERT INTO'] = $table;
     $this->values($values);
 }