summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php')
-rw-r--r--codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php b/codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php
new file mode 100644
index 0000000..fed4f95
--- /dev/null
+++ b/codebase/Dhtmlx/Connector/JSONDistinctOptionsConnector.php
@@ -0,0 +1,18 @@
+<?php
+namespace Dhtmlx\Connector;
+
+class JSONDistinctOptionsConnector extends JSONOptionsConnector {
+ /*! render self
+ process commands, return data as XML, not output data to stdout, ignore parameters in incoming request
+ @return
+ data as XML string
+ */
+ public function render(){
+ if (!$this->init_flag){
+ $this->init_flag=true;
+ return "";
+ }
+ $res = $this->sql->get_variants($this->config->text[0]["db_name"],$this->request);
+ return $this->render_set($res);
+ }
+} \ No newline at end of file