summaryrefslogtreecommitdiffstats
path: root/codebase/crosslink_connector.php
diff options
context:
space:
mode:
authorDmitry <dmitry@dhtmlx.com>2012-05-22 19:04:01 +0200
committerDmitry <dmitry@dhtmlx.com>2012-05-22 19:04:01 +0200
commit4e0e9848fd20129ccf6514917ef9eb72f2aa11e5 (patch)
treee4d72bdc71a407dc6f5942d512c175866a0836e9 /codebase/crosslink_connector.php
parent599f673d49d93d6e4726a90cd0675f3742a86aa7 (diff)
downloadconnector-php-4e0e9848fd20129ccf6514917ef9eb72f2aa11e5.zip
connector-php-4e0e9848fd20129ccf6514917ef9eb72f2aa11e5.tar.gz
connector-php-4e0e9848fd20129ccf6514917ef9eb72f2aa11e5.tar.bz2
fix crosslink connector
Diffstat (limited to 'codebase/crosslink_connector.php')
-rw-r--r--codebase/crosslink_connector.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/codebase/crosslink_connector.php b/codebase/crosslink_connector.php
index f92d0c5..3bd2d2c 100644
--- a/codebase/crosslink_connector.php
+++ b/codebase/crosslink_connector.php
@@ -3,6 +3,8 @@
@author dhtmlx.com
@license GPL, see license.txt
*/
+require_once("crosslink_connector.php");
+
class DelayedConnector extends Connector{
protected $init_flag=false;//!< used to prevent rendering while initialization
private $data_mode=false;//!< flag to separate xml and data request modes
@@ -120,4 +122,16 @@ class CrossOptionsConnector extends Connector{
}
}
+
+class JSONCrossOptionsConnector extends CrossOptionsConnector{
+ public $options, $link;
+ private $master_name, $link_name, $master_value;
+
+ public function __construct($res,$type=false,$item_type=false,$data_type=false){
+ $this->options = new JSONOptionsConnector($res,$type,$item_type,$data_type);
+ $this->link = new DelayedConnector($res,$type,$item_type,$data_type);
+
+ EventMaster::attach_static("connectorInit",array($this, "handle"));
+ }
+}
?> \ No newline at end of file