Skip to content

Commit

Permalink
added parent __call()
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNaddy authored and RyanNaddy committed Jul 17, 2013
1 parent 795ca54 commit 22d64e8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/Database/Database.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ public function __construct($data){
$this->password = $data["password"];
parent::__construct();
}

public function __get($name){
parent::__get($name);
}


public function __call($name, $args){
if(preg_match("/findBy(.+)/", $name, $matches)){
if($this->validName($matches[1])){
Expand All @@ -42,6 +38,7 @@ public function __call($name, $args){
throw new Exception("Invalid Column Name.");
}
}
return parent::__call($name, $args);
}

public function connect(){
Expand Down

0 comments on commit 22d64e8

Please sign in to comment.