Go home
Data
CommentList
(CommentList is an interface, not a class)
- CommentList(url) - constructor - makes a new CommentList with comments from the given URL
- get(index) - gets a comment by the index
- add(comment) - adds a comment to the list and auto-saves it, returns the comment's index
- remove(index) - removes a comment from the list and auto-saves it
Implementations of CommentList
LocalCommentList
- Saves and loads comments locally to about:config
GlobalCommentList
- Saves and loads comments from a remote server
Private methods:
- fetch(url) - get the comments for the given URL
- save() - save the comments
- comments[] - array of comments
Comment
- text - the text of the comment
- user - the name of the user who wrote the comment
- date - the time/date the comment was made
- url - the URL the comment applies to
UI / Controller
- I don't know how the class layout for extension would look, although I get the impression that the plugin structure is well suited for an MVC design, but maybe someone with more experience can comment on that. --Paul 19:55, 14 November 2007 (EST)