cosmetics

This commit is contained in:
Steffen Vogel 2011-01-15 15:31:50 +01:00
parent bea5f58f16
commit efddd60757
2 changed files with 4 additions and 4 deletions

View file

@ -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); }

View file

@ -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);