Inheritance diagram for Comments:

Public Member Functions | |
| Comments ($source=null) | |
| loadComments ($for) | |
| addComment ($data) | |
| canAdd ($for) | |
| hasComments () | |
| getComments () | |
| mergeVars () | |
Public Attributes | |
| comments | |
| prefix | |
| _init | |
| _source | |
| _modulesrc | |
| _module | |
Definition at line 30 of file Comments.php.
|
|
This constructor creates a new inmstance of Comments class and also performs source check. Constructor is responsible about selecting and loading a correct data loader module.
Definition at line 55 of file Comments.php. References generateModule(), and module. |
|
|
If module is loaded propeply, this method adds a new comments into data file using selected module. And after adding a new comment, variables will be merged.
Definition at line 103 of file Comments.php. References mergeVars(). |
|
|
Checks if adding comment on current album is allowed or possible. For example Gallery module doesnät support adding comments by album-level, but XML comments supports this.
Definition at line 120 of file Comments.php. |
|
|
Get all comments as array
Definition at line 147 of file Comments.php. |
|
|
Detects if we have any comments (currently loaded)
Definition at line 133 of file Comments.php. |
|
|
If data loader modue was succesfully loaded at Constructor, this method loads data using module's loadData()-method. After loading data to module's parameters, loadData() calls mergeVars-method to merge comments data from module to current object.
Definition at line 87 of file Comments.php. References mergeVars(). |
|
|
After comments data is loaded by module's loadData(), this method is called to merge data from module to this object. Definition at line 156 of file Comments.php. Referenced by addComment(), and loadComments(). |
|
|
Definition at line 39 of file Comments.php. |
|
|
Definition at line 47 of file Comments.php. |
|
|
Definition at line 41 of file Comments.php. |
|
|
Definition at line 40 of file Comments.php. |
|
|
Reimplemented in Comments_gallery, and Comments_XML. Definition at line 36 of file Comments.php. |
|
|
Definition at line 37 of file Comments.php. |
1.3