MongoDBController

Undocumented in source.

Constructors

this
this(string db_url)
Undocumented in source.

Members

Functions

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

Inherited Members

From DBController

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

Meta