From 0b4ac060ab0b07bc7d7708947bafd78f15cd07a2 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 18 Jul 2012 10:48:53 -0400 Subject: [PATCH] Implemented UserList::getTags. --- module/VuFind/src/VuFind/Db/Row/UserList.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module/VuFind/src/VuFind/Db/Row/UserList.php b/module/VuFind/src/VuFind/Db/Row/UserList.php index a3e75097d7d..72592cd7c9b 100644 --- a/module/VuFind/src/VuFind/Db/Row/UserList.php +++ b/module/VuFind/src/VuFind/Db/Row/UserList.php @@ -26,7 +26,7 @@ * @link http://vufind.org Main Site */ namespace VuFind\Db\Row; -use Zend\Db\RowGateway\RowGateway; +use VuFind\Db\Table\User as UserTable, Zend\Db\RowGateway\RowGateway; /** * Row Definition for user_list @@ -73,14 +73,12 @@ class UserList extends RowGateway */ public function getTags() { - /* TODO - $table = new VuFind_Model_Db_User(); - $user = $table->find($this->user_id)->current(); + $table = new UserTable(); + $user = $table->select(array('id' => $this->user_id))->current(); if (is_null($user)) { return array(); } return $user->getTags(null, $this->id); - */ } /** -- GitLab