From 02ffac52e022f56cd72648989a703e4e763939c3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 11 Jun 2010 23:17:45 +0200 Subject: [PATCH] added some TODO comments to API calls --- backend/lib/controller/channelcontroller.php | 3 ++- backend/lib/controller/groupcontroller.php | 2 +- backend/lib/controller/usercontroller.php | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/lib/controller/channelcontroller.php b/backend/lib/controller/channelcontroller.php index 988992b..89114f0 100644 --- a/backend/lib/controller/channelcontroller.php +++ b/backend/lib/controller/channelcontroller.php @@ -31,7 +31,8 @@ class ChannelController extends Controller { public function add() { $channel = new Channel(); - $channel->ucid = $ucid; + + // TODO add ucid generation or exception if no one has been passed via get if (substr($channel->ucid, 0, 19) == OneWireSensor::$ucidPrefix) { $channel->type = 'OneWireSensor'; diff --git a/backend/lib/controller/groupcontroller.php b/backend/lib/controller/groupcontroller.php index 6f426fc..37ea9fd 100644 --- a/backend/lib/controller/groupcontroller.php +++ b/backend/lib/controller/groupcontroller.php @@ -25,7 +25,7 @@ class GroupController extends Controller { $group->description = $this->view->request->get['description']; $group->save(); - // TODO add ugid + // TODO generate ugid $this->view->addGroup($group); } diff --git a/backend/lib/controller/usercontroller.php b/backend/lib/controller/usercontroller.php index 1f37851..b87f215 100644 --- a/backend/lib/controller/usercontroller.php +++ b/backend/lib/controller/usercontroller.php @@ -23,6 +23,9 @@ class UserController extends Controller { public function add() { $user = new User(); $user->password = $this->view->request->get['password']; + + // TODO generate uuid + $user->save(); $this->view->addUser($user); }