summaryrefslogtreecommitdiffstats
path: root/codebase/DataStorage/ArrayDBDataWrapper.php
diff options
context:
space:
mode:
authorEgor <egor.26.93@gmail.com>2015-06-11 16:01:20 +0300
committerEgor <egor.26.93@gmail.com>2015-06-11 16:01:20 +0300
commit5992398183bf84c87dd4315d1532d10022718e9b (patch)
treec192dec5f76a7875265659d42dc2a5be22fc319b /codebase/DataStorage/ArrayDBDataWrapper.php
parent388e84730286a153c12a77d9f19215f2b74c5c4f (diff)
downloadconnector-php-5992398183bf84c87dd4315d1532d10022718e9b.zip
connector-php-5992398183bf84c87dd4315d1532d10022718e9b.tar.gz
connector-php-5992398183bf84c87dd4315d1532d10022718e9b.tar.bz2
Changed psr-4 structure to psr-0. Added connectors for phpcake, codeigniter frameworks.
Diffstat (limited to 'codebase/DataStorage/ArrayDBDataWrapper.php')
-rw-r--r--codebase/DataStorage/ArrayDBDataWrapper.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/codebase/DataStorage/ArrayDBDataWrapper.php b/codebase/DataStorage/ArrayDBDataWrapper.php
deleted file mode 100644
index a806161..0000000
--- a/codebase/DataStorage/ArrayDBDataWrapper.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-namespace DHTMLX\Connector\DataStorage;
-
-class ArrayDBDataWrapper extends DBDataWrapper
-{
- public function get_next($res)
- {
- if ($res->index < sizeof($res->data))
- return $res->data[$res->index++];
- }
-
- public function select($sql)
- {
- if ($this->config->relation_id["db_name"] == "") {
- if ($sql->get_relation() == "0" || $sql->get_relation() == "") {
- return new ArrayQueryWrapper($this->connection);
- } else {
- return new ArrayQueryWrapper(array());
- }
- }
-
- $relation_id = $this->config->relation_id["db_name"];
-
- for ($i = 0; $i < count($this->connection); $i++) {
- $item = $this->connection[$i];
- if (!isset($item[$relation_id])) continue;
- if ($item[$relation_id] == $sql->get_relation())
- $result[] = $item;
-
- }
-
- return new ArrayQueryWrapper($result);
- }
-
- public function query($sql)
- {
- throw new Exception("Not implemented");
- }
-
- public function escape($value)
- {
- throw new Exception("Not implemented");
- }
-
- public function get_new_id()
- {
- throw new Exception("Not implemented");
- }
-} \ No newline at end of file