summaryrefslogtreecommitdiffstats
path: root/codebase/Dhtmlx/Connector/JSONOptionsConnector.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/Dhtmlx/Connector/JSONOptionsConnector.php')
-rw-r--r--codebase/Dhtmlx/Connector/JSONOptionsConnector.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/codebase/Dhtmlx/Connector/JSONOptionsConnector.php b/codebase/Dhtmlx/Connector/JSONOptionsConnector.php
index 1a1b600..8f8fb47 100644
--- a/codebase/Dhtmlx/Connector/JSONOptionsConnector.php
+++ b/codebase/Dhtmlx/Connector/JSONOptionsConnector.php
@@ -1,9 +1,9 @@
<?php
-
namespace Dhtmlx\Connector;
+
/*! wrapper around options collection, used for comboboxes and filters
**/
-class JSONOptionsConnector extends JSONDataConnector{
+class JSONOptionsConnector extends JSONDataConnector {
protected $init_flag=false;//!< used to prevent rendering while initialization
public function __construct($res,$type=false,$item_type=false,$data_type=false){
if (!$item_type) $item_type="JSONCommonDataItem";
@@ -23,21 +23,4 @@ class JSONOptionsConnector extends JSONDataConnector{
$res = $this->sql->select($this->request);
return $this->render_set($res);
}
-}
-
-
-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