Moving dhtmlxGantt library to 'libraries' folder
This commit is contained in:
parent
dbcdde741c
commit
5e16eb66dd
162 changed files with 6 additions and 5 deletions
28
libraries/dhtmlxgantt/connector/mixed_connector.php
Normal file
28
libraries/dhtmlxgantt/connector/mixed_connector.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/*
|
||||
@author dhtmlx.com
|
||||
@license GPL, see license.txt
|
||||
*/
|
||||
require_once("base_connector.php");
|
||||
|
||||
class MixedConnector extends Connector {
|
||||
|
||||
protected $connectors = array();
|
||||
|
||||
public function add($name, $conn) {
|
||||
$this->connectors[$name] = $conn;
|
||||
}
|
||||
|
||||
public function render() {
|
||||
$result = "{";
|
||||
$parts = array();
|
||||
foreach($this->connectors as $name => $conn) {
|
||||
$conn->asString(true);
|
||||
$parts[] = "\"".$name."\":".($conn->render())."\n";
|
||||
}
|
||||
$result .= implode(",\n", $parts)."}";
|
||||
echo $result;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in a new issue