From aa2c7065178d8ec2a1048a9a25103020d62cbb54 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 25 Jul 2010 23:16:22 +0200 Subject: [PATCH] updated proxies --- .../Proxies/VolkszaehlerModelChannelProxy.php | 2 +- .../Proxies/VolkszaehlerModelGroupProxy.php | 32 ++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelChannelProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelChannelProxy.php index 24c63a7..b778130 100644 --- a/backend/lib/Model/Proxies/VolkszaehlerModelChannelProxy.php +++ b/backend/lib/Model/Proxies/VolkszaehlerModelChannelProxy.php @@ -118,6 +118,6 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen if (!$this->__isInitialized__) { throw new \RuntimeException("Not fully loaded proxy can not be serialized."); } - return array('name', 'description', 'indicator', 'data', 'resolution', 'cost', 'id', 'uuid'); + return array('name', 'description', 'indicator', 'data', 'resolution', 'cost', 'groups', 'id', 'uuid'); } } \ No newline at end of file diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelGroupProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelGroupProxy.php index 270c002..10ec167 100644 --- a/backend/lib/Model/Proxies/VolkszaehlerModelGroupProxy.php +++ b/backend/lib/Model/Proxies/VolkszaehlerModelGroupProxy.php @@ -28,6 +28,18 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \ } + public function addGroup(\Volkszaehler\Model\Group $child) + { + $this->_load(); + return parent::addGroup($child); + } + + public function addChannel(\Volkszaehler\Model\Channel $child) + { + $this->_load(); + return parent::addChannel($child); + } + public function getName() { $this->_load(); @@ -52,6 +64,24 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \ return parent::setDescription($description); } + public function getChildren() + { + $this->_load(); + return parent::getChildren(); + } + + public function getParents() + { + $this->_load(); + return parent::getParents(); + } + + public function getChannels() + { + $this->_load(); + return parent::getChannels(); + } + public function getId() { $this->_load(); @@ -70,6 +100,6 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \ if (!$this->__isInitialized__) { throw new \RuntimeException("Not fully loaded proxy can not be serialized."); } - return array('name', 'description', 'channels', 'children', 'id', 'uuid'); + return array('name', 'description', 'channels', 'children', 'parents', 'id', 'uuid'); } } \ No newline at end of file