This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/libraries/dhtmlxgantt/connector/mixed_connector.php

28 lines
No EOL
545 B
PHP

<?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;
}
}
?>