summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry <dmitry@dhtmlx.com>2012-07-12 14:52:48 +0200
committerDmitry <dmitry@dhtmlx.com>2012-07-12 14:52:48 +0200
commit6fc9bef8a15525b8973fb3855cdf830725545786 (patch)
tree0dfb66104a6ae6c144c51aabda503b9000685499
parent292bdb8b3b444dc480c6039a3b7acd0d5f60aa2a (diff)
downloadconnector-php-6fc9bef8a15525b8973fb3855cdf830725545786.zip
connector-php-6fc9bef8a15525b8973fb3855cdf830725545786.tar.gz
connector-php-6fc9bef8a15525b8973fb3855cdf830725545786.tar.bz2
mix usage sample
-rw-r--r--samples/common/04_mix_connector.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/common/04_mix_connector.php b/samples/common/04_mix_connector.php
new file mode 100644
index 0000000..8e8607a
--- /dev/null
+++ b/samples/common/04_mix_connector.php
@@ -0,0 +1,20 @@
+<?php
+ require_once("../config.php");
+ $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
+ mysql_select_db($mysql_db);
+
+ require("../../codebase/data_connector.php");
+ require("../../codebase/scheduler_connector.php");
+ require("../../codebase/grid_connector.php");
+
+
+ $details = new JSONDataConnector($res);
+ $details->mix("active", "yes");
+ $details->configure("types","typeid","name");
+
+ $events = new JSONSchedulerConnector($res);
+ $events->mix("types", $details, array(
+ "typeid" => "type"
+ ));
+ $events->render_table("tevents","event_id","start_date,end_date,event_name,type", "", "");
+?> \ No newline at end of file