From 4513bdfbea2cbb1645df05dc973ac3c12cd39e5c Mon Sep 17 00:00:00 2001 From: datazource Date: Sat, 17 Sep 2016 17:51:03 +0700 Subject: [PATCH 1/3] Change case insensitive --- src/Adapters/ResultSet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapters/ResultSet.php b/src/Adapters/ResultSet.php index 5a50e7e..1c35afd 100644 --- a/src/Adapters/ResultSet.php +++ b/src/Adapters/ResultSet.php @@ -34,7 +34,7 @@ public function getResponse() { if (count($this->global)) { foreach($this->global as $column=>$filters) { foreach($filters as $search) { - $check = (strpos($item->$column, $search) !== false); + $check = (strpos(strtoupper( $item->$column ), strtoupper( $search ) ) !== false); if ($check) break 2; } } @@ -45,7 +45,7 @@ public function getResponse() { if (count($this->column) && $check) { foreach($this->column as $column=>$filters) { foreach($filters as $search) { - $check = (strpos($item->$column, $search) !== false); + $check = (strpos( strtoupper( $item->$column ), strtoupper( $search ) ) !== false); if (!$check) break 2; } } From 8d8ab4f6905e7116fe00579a75bba9dda1286c3c Mon Sep 17 00:00:00 2001 From: datazource Date: Sat, 17 Sep 2016 18:12:39 +0700 Subject: [PATCH 2/3] test --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a49262e..7d46c56 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "m1ome/phalcon-datatables", + "name": "Datazource/phalcon-datatables", "description": "DataTables adapter for Phalcon Framework", "keywords": ["Phalcon", "DataTables", "Plugin"], "license": "MIT", From 5b214d2ed8004efa1abcbdbe4f5de04b3584688b Mon Sep 17 00:00:00 2001 From: datazource Date: Mon, 14 Nov 2016 14:49:59 +0700 Subject: [PATCH 3/3] Change to array --- src/Adapters/ArrayAdapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapters/ArrayAdapter.php b/src/Adapters/ArrayAdapter.php index 3f3086c..c3f2adb 100644 --- a/src/Adapters/ArrayAdapter.php +++ b/src/Adapters/ArrayAdapter.php @@ -37,7 +37,7 @@ public function getResponse() { if (count($this->global)) { foreach($this->global as $column=>$filters) { foreach($filters as $search) { - $check = (strpos($item[$column], $search) !== false); + $check = (stripos($item[$column], $search) !== false); if ($check) break 2; } } @@ -48,7 +48,7 @@ public function getResponse() { if (count($this->column) && $check) { foreach($this->column as $column=>$filters) { foreach($filters as $search) { - $check = (strpos($item[$column], $search) !== false); + $check = (stripos($item[$column], $search) !== false); if (!$check) break 2; } }