diff --git a/module/VuFind/src/VuFind/Db/Table/User.php b/module/VuFind/src/VuFind/Db/Table/User.php index b23ddcef64adc2753d1c155c65926d61022cda8f..c5dae8da258ffff918fccf2080c132a5c816cc5b 100644 --- a/module/VuFind/src/VuFind/Db/Table/User.php +++ b/module/VuFind/src/VuFind/Db/Table/User.php @@ -96,6 +96,18 @@ class User extends Gateway return $row; } + /** + * Retrieve a user object from the database based on ID. + * + * @param string $id ID. + * + * @return UserRow + */ + public function getById($id) + { + return $this->select(['id' => $id])->current(); + } + /** * Retrieve a user object from the database based on catalog ID. *