From efddd60757a38b852ec91e9e96ae4ebff61eab8c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 15 Jan 2011 15:31:50 +0100 Subject: [PATCH] cosmetics --- lib/Model/Property.php | 6 +++--- lib/Router.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Model/Property.php b/lib/Model/Property.php index 9c0391b..24011ec 100644 --- a/lib/Model/Property.php +++ b/lib/Model/Property.php @@ -24,7 +24,6 @@ namespace Volkszaehler\Model; use Volkszaehler\Definition; - use Volkszaehler\Util; use Volkszaehler\Model; @@ -73,7 +72,6 @@ class Property { */ public function __construct(Model\Entity $entity, $key, $value) { $this->entity = $entity; - $this->key = $key; $this->value = $value; } @@ -118,6 +116,7 @@ class Property { /** * @PreRemove + * @todo blocks removal of entity */ public function checkRemove() { if (in_array($this->key, $this->entity->getDefinition()->getRequiredProperties())) { @@ -135,8 +134,9 @@ class Property { } /* - * Setter & Getter + * Setter & getter */ + public function getKey() { return $this->key; } public function getValue() { return $this->value; } public function getDefinition() { return Definition\PropertyDefinition::get($this->key); } diff --git a/lib/Router.php b/lib/Router.php index 520377d..1e14550 100644 --- a/lib/Router.php +++ b/lib/Router.php @@ -137,7 +137,7 @@ class Router { /** * Processes the request * - * Example: http://sub.domain.local/vz/backend/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title + * Example: http://sub.domain.local/backend.php/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title */ public function run() { $operation = self::getOperation($this->view->request);