Class ArticleForumCollection
This class contains functions for dB manipulations and for the interaction between the frontend module content_user_forum and the backend plugin.
- cGenericDb
- cItemBaseAbstract
- ItemCollection
- ArticleForumCollection
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Claus Schunk
Located at plugins/user_forum/classes/class.article_forum_collection.php
public
|
|
public
|
|
public
|
#
deleteHierarchie( mixed $keyPost, mixed $level, mixed $idart, mixed $idcat, mixed $lang )
deletes comment with all subcomments from this comment |
protected
|
|
public
|
|
public
|
#
getTreeLevel( mixed $id_cat, mixed $id_art, mixed $id_lang, mixed & $arrUsers, mixed & $arrforum, mixed $parent = 0, mixed $frontend = false )
|
public
|
#
updateValues( mixed $id_user_forum, mixed $name, mixed $email, mixed $like, mixed $dislike, mixed $forum, mixed $online, mixed $checked )
|
public
|
#
toggleOnlineState( mixed $onlineState, primary $id_user_forum )
toggles the given input with update in db. |
public
|
#
mailToModerator( mixed $realname, mixed $email, mixed $forum, mixed $idart, mixed $lang, mixed $forum_quote = 0 )
email notification for registred moderator. before calling this function it is necessary to receive the converted language string from frontend module. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
incrementLike( mixed $forum_user_id )
this function inkrements the actual value of likes from a comment and persists it. |
public
|
#
incrementDislike( mixed $forum_user_id )
this function inkrements the actual value of dislikes from a comment and persists it. |
public
|
#
insertValues( mixed $parent, mixed $idart, mixed $idcat, mixed $lang, mixed $userid, mixed $email, mixed $realname, mixed $forum, mixed $forum_quote )
persists a new comment created at the frontend module. |
public
|
#
deleteAllCommentsById( articleId $idart )
this function deletes all comments related to the same articleId |
public
|
|
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
|
#
languageSync( array & $str )
this function is used to get translations from the language of the frontend module for example to generate the e-mail text with correct language settings. |
public
|
|
public
|
|
protected
|
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
escape()
|
_executeCallbacks(),
register(),
unregister()
|
CREATE_BEFORE,
CREATE_FAILURE,
CREATE_SUCCESS,
DELETE_BEFORE,
DELETE_FAILURE,
DELETE_SUCCESS,
STORE_BEFORE,
STORE_FAILURE,
STORE_SUCCESS
|
protected
integer
|
$cfg | 0 |
|
protected
|
$db | 0 |
#
Database instance, contains the database object |
protected
integer
|
$item | 0 |
|
protected
integer
|
$languageSync | 0 |
|
protected
integer
|
$idContentType | 0 |
$_className,
$_oCache,
$_settings,
$lasterror,
$primaryKey,
$properties,
$secondDb,
$table,
$virgin
|