DBController

Undocumented in source.

Members

Functions

addFile
void addFile(string post_name, string file_name, ubyte[] contents)
Undocumented in source.
addPost
BsonObjectID addPost(Post post)
Undocumented in source.
addUser
BsonObjectID addUser(User user)
Undocumented in source.
countPostsForCategory
int countPostsForCategory(string[] categories)
Undocumented in source.
deleteConfig
void deleteConfig(string name)
Undocumented in source.
deletePost
void deletePost(BsonObjectID id)
Undocumented in source.
deleteUser
void deleteUser(BsonObjectID id)
Undocumented in source.
getAllConfigs
Config[] getAllConfigs()
Undocumented in source.
getAllPosts
void getAllPosts(int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source.
getAllUsers
User[string] getAllUsers()
Undocumented in source.
getConfig
Config getConfig(string name, bool createdefault)
Undocumented in source.
getFile
InputStream getFile(string post_name, string file_name)
Undocumented in source.
getFiles
string[] getFiles(string post_name)
Undocumented in source.
getPost
Post getPost(BsonObjectID postid)
Undocumented in source.
getPost
Post getPost(string name)
Undocumented in source.
getPostsForCategory
void getPostsForCategory(string[] categories, int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source.
getPublicPostsForCategory
void getPublicPostsForCategory(string[] categories, int nskip, bool delegate(size_t idx, Post post) del)
Undocumented in source.
getUser
User getUser(BsonObjectID userid)
Undocumented in source.
getUserByEmail
User getUserByEmail(string email)
Undocumented in source.
getUserByName
User getUserByName(string name)
Undocumented in source.
hasPost
bool hasPost(string name)
Undocumented in source.
invokeOnConfigChange
void invokeOnConfigChange(void delegate() del)
Undocumented in source.
modifyPost
void modifyPost(Post post)
Undocumented in source.
modifyUser
void modifyUser(User user)
Undocumented in source.
removeFile
void removeFile(string post_name, string file_name)
Undocumented in source.
setConfig
void setConfig(Config cfg)
Undocumented in source.

Meta