Skip to content

Commit

Permalink
added exclude function to remove keys for insertfrompost
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Aug 13, 2017
1 parent e3f1c9c commit 69fbb9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,14 @@ public function insert()
return $prepared_query;
}

public function exclude()
{
foreach(func_get_args() as $key) {
unset($_POST[$key]);
}
return $this;
}

public function insertFromPost()
{
$this->makeDatabaseConnection();
Expand Down

0 comments on commit 69fbb9e

Please sign in to comment.