Fix Tree ambiguos class. Resolved renaming Tree to PmTree
This commit is contained in:
David Callizaya
2017-08-21 10:39:10 -04:00
parent c4a70d35d9
commit bfe2b7ec38
17 changed files with 257 additions and 286 deletions

View File

@@ -1,38 +1,10 @@
<?php <?php
/**
* class.tree.php
*
* @package gulliver.system
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc.
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* <20>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
/** /**
* *
* @package gulliver.system * @package gulliver.system
*/ */
class PmTree extends Xml_Node
class Tree extends Xml_Node
{ {
public $template = 'tree.html'; public $template = 'tree.html';
@@ -55,7 +27,7 @@ class Tree extends Xml_Node
* *
* @return none * @return none
*/ */
public function Tree($xmlnode = null) public function PmTree($xmlnode = null)
{ {
if (!isset($xmlnode)) { if (!isset($xmlnode)) {
return; return;
@@ -66,7 +38,7 @@ class Tree extends Xml_Node
foreach ($xmlnode as $key => $value) { foreach ($xmlnode as $key => $value) {
if ($key === 'children') { if ($key === 'children') {
foreach ($xmlnode->children as $key => $value) { foreach ($xmlnode->children as $key => $value) {
$this->children[$key] = new Tree($value->toTree()); $this->children[$key] = new PmTree($value->toTree());
} }
} elseif ($key === 'attributes') { } elseif ($key === 'attributes') {
foreach ($xmlnode->attributes as $key => $value) { foreach ($xmlnode->attributes as $key => $value) {
@@ -89,7 +61,7 @@ class Tree extends Xml_Node
*/ */
public function &addChild($name, $label, $attributes = array()) public function &addChild($name, $label, $attributes = array())
{ {
$newNode = new Tree(new Xml_Node($name, 'open', $label, $attributes)); $newNode = new PmTree(new Xml_Node($name, 'open', $label, $attributes));
$this->children[] = & $newNode; $this->children[] = & $newNode;
return $newNode; return $newNode;
} }
@@ -156,4 +128,3 @@ class Tree extends Xml_Node
return $obj->printObject(array('node' => &$this)); return $obj->printObject(array('node' => &$this));
} }
} }

View File

@@ -745,7 +745,7 @@ function openPMFolder()
exit (); exit ();
} }
$tree = new Tree (); $tree = new PmTree ();
$tree->name = 'DMS'; $tree->name = 'DMS';
$tree->nodeType = "blank"; $tree->nodeType = "blank";

View File

@@ -32,7 +32,7 @@ $c->add(AppThreadPeer::APP_UID, $APP_UID );
$c->add(AppThreadPeer::APP_THREAD_STATUS , 'OPEN' ); $c->add(AppThreadPeer::APP_THREAD_STATUS , 'OPEN' );
$cant = AppThreadPeer::doCount($c); $cant = AppThreadPeer::doCount($c);
$oTree = new Tree(); $oTree = new PmTree();
$oTree->nodeType = "blank"; $oTree->nodeType = "blank";
$oTree->name = 'Actions'; $oTree->name = 'Actions';
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -23,7 +23,7 @@
* *
*/ */
$oTree = new Tree(); $oTree = new PmTree();
$oTree->nodeType ="blank"; $oTree->nodeType ="blank";
$oTree->name = 'Information'; $oTree->name = 'Information';
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -23,7 +23,7 @@
* *
*/ */
$oTree = new Tree(); $oTree = new PmTree();
$oTree->name = 'KT'; $oTree->name = 'KT';
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -33,7 +33,7 @@ use ProcessMaker\Plugins\PluginRegistry;
$oPluginRegistry = PluginRegistry::loadSingleton(); $oPluginRegistry = PluginRegistry::loadSingleton();
$externalSteps = $oPluginRegistry->getSteps(); $externalSteps = $oPluginRegistry->getSteps();
$oTree = new Tree(); $oTree = new PmTree();
$oTree->nodeType = "blank"; $oTree->nodeType = "blank";
$oTree->name = 'Steps'; $oTree->name = 'Steps';
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -23,7 +23,7 @@
* *
*/ */
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Groups'; $tree->name = 'Groups';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "200px"; $tree->width = "200px";

View File

@@ -35,7 +35,7 @@
$oDataset = $RBAC->getAllPermissions($ROL_UID,$RBAC->sSystem); $oDataset = $RBAC->getAllPermissions($ROL_UID,$RBAC->sSystem);
$roleCode = $RBAC->getRoleCode($ROL_UID); $roleCode = $RBAC->getRoleCode($ROL_UID);
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";

View File

@@ -35,7 +35,7 @@
$oDataset = $RBAC->getAllUsers($ROL_UID); $oDataset = $RBAC->getAllUsers($ROL_UID);
$roleCode = $RBAC->getRoleCode($ROL_UID); $roleCode = $RBAC->getRoleCode($ROL_UID);
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";

View File

@@ -35,7 +35,7 @@
$oDataset = $RBAC->getRoleUsers($ROL_UID); $oDataset = $RBAC->getRoleUsers($ROL_UID);
$roleCode = $RBAC->getRoleCode($ROL_UID); $roleCode = $RBAC->getRoleCode($ROL_UID);
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";

View File

@@ -36,7 +36,7 @@
$roleCode = $RBAC->getRoleCode($ROL_UID); $roleCode = $RBAC->getRoleCode($ROL_UID);
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";

View File

@@ -51,7 +51,7 @@ $defaultEndpoint = 'http://' . $_SERVER ['SERVER_NAME'] . ':' . $_SERVER ['SERVE
$wsdl = isset ( $_SESSION ['END_POINT'] ) ? $_SESSION ['END_POINT'] : $defaultEndpoint; $wsdl = isset ( $_SESSION ['END_POINT'] ) ? $_SESSION ['END_POINT'] : $defaultEndpoint;
$tree = new Tree ( ); $tree = new PmTree ( );
$tree->name = 'WebServices'; $tree->name = 'WebServices';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->contentWidth = "310"; $tree->contentWidth = "310";

View File

@@ -32,7 +32,7 @@ try {
$externalSteps = $oPluginRegistry->getSteps(); $externalSteps = $oPluginRegistry->getSteps();
$oProcessMap = new ProcessMap(); $oProcessMap = new ProcessMap();
$oTree = new Tree(); $oTree = new PmTree();
$oTree->nodeType = 'blank'; $oTree->nodeType = 'blank';
$oTree->name = 'Triggers'; $oTree->name = 'Triggers';
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -26,7 +26,7 @@
/* /*
* Esto no deberias borrarlo * Esto no deberias borrarlo
*/ */
$tree = new Tree(); $tree = new PmTree();
reView(PATH_TRUNK, $tree); reView(PATH_TRUNK, $tree);
print( $tree->render()); print( $tree->render());

View File

@@ -28,7 +28,7 @@ try {
$triggerLibrary = TriggerLibrary::getSingleton(); $triggerLibrary = TriggerLibrary::getSingleton();
$triggerLibraryO = $triggerLibrary->getRegisteredClasses(); $triggerLibraryO = $triggerLibrary->getRegisteredClasses();
$oTree = new Tree(); $oTree = new PmTree();
$oTree->nodeType = "blank"; $oTree->nodeType = "blank";
$oTree->name = "Triggers"; $oTree->name = "Triggers";
$oTree->showSign = false; $oTree->showSign = false;

View File

@@ -43,7 +43,7 @@
$groups = new Groups(); $groups = new Groups();
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";

View File

@@ -43,7 +43,7 @@
$groups = new Groups(); $groups = new Groups();
$tree = new Tree(); $tree = new PmTree();
$tree->name = 'Users'; $tree->name = 'Users';
$tree->nodeType = "base"; $tree->nodeType = "base";
$tree->width = "350px"; $tree->width = "350px";