<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("DivideUI.php");
$ui_factory_url = attachToCurrentURLInPath("DivideFactoryUI.php");
?>
<script>
	
	function DivideComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			parameters["number1"]={type:"int"};
			parameters["number2"]={type:"int"};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["multiplication"]={type:"int"};
			return parameters;
			};
		this.draw=function(parent, x, y){
Пример #2
0
<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("XNORUI.php");
$ui_factory_url = attachToCurrentURLInPath("XNORFactoryUI.php");
?>
<script>
	
	function XNORComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			parameters["in1"]={type:"bool"};
			parameters["in2"]={type:"bool"};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["out"]={type:"bool"};
			return parameters;
			};
		this.draw=function(parent, x, y){
<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("MultiplyUI.php");
$ui_factory_url = attachToCurrentURLInPath("MultiplyFactoryUI.php");
?>
<script>
	
	function MultiplyComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			parameters["number1"]={type:"int"};
			parameters["number2"]={type:"int"};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["multiplication"]={type:"int"};
			return parameters;
			};
		this.draw=function(parent, x, y){
<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("AdderUI.php");
$ui_factory_url = attachToCurrentURLInPath("AdderFactoryUI.php");
?>
<script>
	
	function AdderComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			parameters["number1"]={type:"int"};
			parameters["number2"]={type:"int"};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["sum"]={type:"int"};
			return parameters;
			};
		this.draw=function(parent, x, y){
<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("InputUI.php");
$ui_factory_url = attachToCurrentURLInPath("InputFactoryUI.php");
?>
<script>
	function InputComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["number"]={type:"int"};
			return parameters;
			};
		this.draw=function(parent, x, y){
			$.get(objSelf.ui_url,  { id: objSelf.id}, function(data) {
					objSelf.uicomponent=workspace.insertUIElementsToPage(parent,x,y,data);
					//workspace.addPorts(objSelf.uicomponent,objSelf.getInputs(),0,false);
<?php

include '../../utils/urlutils.php';
$id = $_GET["id"];
$ui_url = attachToCurrentURLInPath("SubtractUI.php");
$ui_factory_url = attachToCurrentURLInPath("SubtractFactoryUI.php");
?>
<script>
	function SubtractComponent(id, type){
		var objSelf = this;
		this.id=id;
		this.uicomponent=null;
		this.type=type;
		this.parent=null;
		this.ui_url="<?php 
echo $ui_url;
?>
";
		this.getInputs=function(){
			parameters={};
			parameters["number1"]={type:"int"};
			parameters["number2"]={type:"int"};
			return parameters;
			};
		this.getOutputs=function(){
			parameters={};
			parameters["difference"]={type:"int"};
			return parameters;
			};
		this.draw=function(parent, x, y){
			$.get(objSelf.ui_url,  { id: objSelf.id}, function(data) {
Пример #7
0
<?php

include '../utils/urlutils.php';
include '../utils/wsdlparser.php';
$url = urldecode($_GET["wsdlurl"]);
// 	$url="http://localhost/poc/test/Calculator.wsdl";
$opid = $_GET["opid"];
?>
<script>
	<?php 
$parser = new WSDLParser($url);
foreach ($parser->getOperations() as $ops) {
    $id = $parser->getServiceName() . "_" . $ops->getFunctionName();
    if ($id == $opid) {
        $ui_url = attachToCurrentURLInPath("WSDLComponentUI.php");
        $ui_factory_url = attachToCurrentURLInPath("WSDLComponentFactoryUI.php");
        ?>
				function <?php 
        echo $id;
        ?>
Component(id, type){
					var objSelf = this;
					this.id=id;
					this.uicomponent=null;
					this.type=type;
					this.parent=null;
					this.ui_url="<?php 
        echo $ui_url;
        ?>
";
					this.getInputs=function(){