Skip to content

Commit

Permalink
add join function. close #10
Browse files Browse the repository at this point in the history
  • Loading branch information
janz93 committed Sep 17, 2015
1 parent f14c542 commit b6df035
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/db/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@

class Delete extends Query {

public function __construct($pdo) {
public function __construct($pdo, $table, $where = null) {
$this->PDOConntector = $pdo;
$this->stm = self::SQL_DELETE . ' ';
$this->from($table);
if (!is_null($where)) {
$this->stm .= $where->stm;
$this->_isWhereExsists = $where->_isWhereExsists;
$this->_bind = $where->_bind;
}
}

public function finalQuery() {
Expand Down

0 comments on commit b6df035

Please sign in to comment.