diff --git a/src/Nether/Database/Prototype.php b/src/Nether/Database/Prototype.php index 7a73acd..47dab1f 100755 --- a/src/Nether/Database/Prototype.php +++ b/src/Nether/Database/Prototype.php @@ -523,7 +523,8 @@ static public function 'Debug' => FALSE, 'Filters' => NULL, 'Resolvers' => NULL, - 'Remappers' => NULL + 'Remappers' => NULL, + 'CustomFilterFunc' => NULL ]); $Opt->MergeRight($Input); @@ -551,6 +552,9 @@ static public function static::FindExtendTables($SQL, $Opt); static::FindExtendFilters($SQL, $Opt); + if(is_callable($Opt['CustomFilterFunc'])) + ($Opt['CustomFilterFunc'])($SQL, $Opt); + // before checking if an extension class wants to add sorting // we will supply the default implementations for sorting by this // table primary key. it is optimal here as we have already asked