diff --git a/library/Businessprocess/Renderer/Renderer.php b/library/Businessprocess/Renderer/Renderer.php index 1659c71..c6efd46 100644 --- a/library/Businessprocess/Renderer/Renderer.php +++ b/library/Businessprocess/Renderer/Renderer.php @@ -16,7 +16,7 @@ use Icinga\Module\Businessprocess\Web\Url; abstract class Renderer extends Html { /** @var BpConfig */ - protected $bp; + protected $config; /** @var BpNode */ protected $parent; @@ -39,12 +39,12 @@ abstract class Renderer extends Html /** * Renderer constructor. * - * @param BpConfig $bp + * @param BpConfig $config * @param BpNode|null $parent */ - public function __construct(BpConfig $bp, BpNode $parent = null) + public function __construct(BpConfig $config, BpNode $parent = null) { - $this->bp = $bp; + $this->config = $config; $this->parent = $parent; } @@ -53,7 +53,7 @@ abstract class Renderer extends Html */ public function getBusinessProcess() { - return $this->bp; + return $this->config; } /** @@ -102,7 +102,7 @@ abstract class Renderer extends Html public function getChildNodes() { if ($this->wantsRootNodes()) { - return $this->bp->getRootNodes(); + return $this->config->getRootNodes(); } else { return $this->parent->getChildren(); } @@ -114,7 +114,7 @@ abstract class Renderer extends Html public function countChildNodes() { if ($this->wantsRootNodes()) { - return $this->bp->countChildren(); + return $this->config->countChildren(); } else { return $this->parent->countChildren(); } @@ -323,6 +323,6 @@ abstract class Renderer extends Html public function __destruct() { unset($this->parent); - unset($this->bp); + unset($this->config); } } diff --git a/library/Businessprocess/Renderer/TileRenderer.php b/library/Businessprocess/Renderer/TileRenderer.php index c544d79..9d6218a 100644 --- a/library/Businessprocess/Renderer/TileRenderer.php +++ b/library/Businessprocess/Renderer/TileRenderer.php @@ -14,7 +14,7 @@ class TileRenderer extends Renderer */ public function render() { - $bp = $this->bp; + $bp = $this->config; $nodesDiv = Container::create( array( 'class' => array( diff --git a/library/Businessprocess/Renderer/TreeRenderer.php b/library/Businessprocess/Renderer/TreeRenderer.php index 2b1ef26..6069122 100644 --- a/library/Businessprocess/Renderer/TreeRenderer.php +++ b/library/Businessprocess/Renderer/TreeRenderer.php @@ -18,7 +18,7 @@ class TreeRenderer extends Renderer */ public function render() { - $bp = $this->bp; + $bp = $this->config; $this->add(Container::create( array( 'id' => $bp->getHtmlId(),