WIP. Added the user table view

This commit is contained in:
emeric
2014-07-23 23:28:16 +02:00
parent d4c0806f7a
commit f378a26a78
8 changed files with 167 additions and 4 deletions
+6
View File
@@ -14,6 +14,12 @@ _videoBitrate(defaultVideoBitrate)
}
std::vector<User::pointer>
User::getAll(Wt::Dbo::Session& session)
{
Wt::Dbo::collection<pointer> res = session.find<User>();
return std::vector<pointer>(res.begin(), res.end());
}
+3
View File
@@ -17,6 +17,9 @@ class User {
typedef Wt::Dbo::ptr<User> pointer;
// accessors
static std::vector<pointer> getAll(Wt::Dbo::Session& session);
bool isAdmin() const {return _isAdmin;}
template<class Action>