diff options
author | Egor <egor.26.93@gmail.com> | 2015-06-12 16:06:06 +0300 |
---|---|---|
committer | Egor <egor.26.93@gmail.com> | 2015-06-12 16:06:06 +0300 |
commit | 9abd184a386a2594398df9f5cd7bd6d5b9c240fc (patch) | |
tree | 6b237196dd4ae8bdee61093308f5c3dcdcc5c79e /codebase/Dhtmlx/Connector/JSONOptionsConnector.php | |
parent | 5fbd0adda5155853e86001fad4c571008f09f01b (diff) | |
download | connector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.zip connector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.tar.gz connector-php-9abd184a386a2594398df9f5cd7bd6d5b9c240fc.tar.bz2 |
Updated structure. Added connectors.
Diffstat (limited to 'codebase/Dhtmlx/Connector/JSONOptionsConnector.php')
-rw-r--r-- | codebase/Dhtmlx/Connector/JSONOptionsConnector.php | 21 |
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 |