Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • ArticleForumCollection
  • ArticleForumItem
  • ArticleForumLeftBottom
  • cContentTypeUserForum
  • UserForum
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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
Extended by cItemBaseAbstract
Extended by ItemCollection
Extended by ArticleForumCollection
Package: Plugin\UserForum
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
Methods summary
public
# __construct( )

Constructor Function

Constructor Function

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

ItemCollection::__construct()
public
# getAllCommentedArticles( )
public
# deleteHierarchie( mixed $keyPost, mixed $level, mixed $idart, mixed $idcat, mixed $lang )

deletes comment with all subcomments from this comment

deletes comment with all subcomments from this comment

Parameters

$keyPost
mixed
$keyPost
$level
mixed
$level
$idart
mixed
$idart
$idcat
mixed
$idcat
$lang
mixed
$lang
protected
# _getCommentHierachrie( mixed $id_cat, mixed $id_art, mixed $id_lang )
public
# normalizeArray( mixed $arrforum, mixed & $result, mixed $level = 0 )
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.

toggles the given input with update in db.

Parameters

$onlineState
mixed
$onlineState
$id_user_forum
primary
key $id_user_forum
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.

email notification for registred moderator. before calling this function it is necessary to receive the converted language string from frontend module.

public
# getArticleTitle( mixed $idart, mixed $idlang )
public ArticleForumRightBottom
# getExistingforum( mixed $id_cat, mixed $id_art, mixed $id_lang )

Parameters

$id_cat
mixed
$id_cat
$id_art
mixed
$id_art
$id_lang
mixed
$id_lang

Returns

ArticleForumRightBottom
public
# selectNameAndNameByForumId( mixed $idquote )
public
# selectUser( mixed $userid )
public
# incrementLike( mixed $forum_user_id )

this function inkrements the actual value of likes from a comment and persists it.

this function inkrements the actual value of likes from a comment and persists it.

Parameters

$forum_user_id
mixed
$forum_user_id identifies a comment.
public
# incrementDislike( mixed $forum_user_id )

this function inkrements the actual value of dislikes from a comment and persists it.

this function inkrements the actual value of dislikes from a comment and persists it.

Parameters

$forum_user_id
mixed
$forum_user_id identifies a comment.
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.

persists a new comment created at the frontend module.

Parameters

$parent
mixed
$parent
$idart
mixed
$idart
$idcat
mixed
$idcat
$lang
mixed
$lang
$userid
mixed
$userid
$email
mixed
$email
$realname
mixed
$realname
$forum
mixed
$forum
$forum_quote
mixed
$forum_quote
public
# deleteAllCommentsById( articleId $idart )

this function deletes all comments related to the same articleId

this function deletes all comments related to the same articleId

Parameters

$idart
articleId
$idart
public
# getExistingforumFrontend( mixed $id_cat, mixed $id_art, mixed $id_lang, mixed $frontend )
public string
# getModEmail( articleid $idart )

returns the emailadress from the moderator for this article

returns the emailadress from the moderator for this article

Parameters

$idart
articleid
$idart

Returns

string
public boolean
# getModeModeActive( articleid $idart )

returns if moderator mode is actice for this article

returns if moderator mode is actice for this article

Parameters

$idart
articleid
$idart

Returns

boolean
public boolean
# getQuoteState( articleid $idart )

returns if quotes for comments are allowed in this article

returns if quotes for comments are allowed in this article

Parameters

$idart
articleid
$idart

Returns

boolean
public array
# readXML( )

This function loads and returns the xml content from the contentType aditionally the return array implies the articleId because of an easier mapping in the frontend.

This function loads and returns the xml content from the contentType aditionally the return array implies the articleId because of an easier mapping in the frontend.

Returns

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.

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.

Parameters

$str
array
$str
public
# getlanguageSync( )
public
# getCommentContent( mixed $id_user_forum )
protected
# getIdUserForumContenType( )
Methods inherited from ItemCollection
ItemCollection(), _buildGroupWhereStatements(), _buildWhereStatements(), _delete(), _deleteMultiple(), _fetchJoinTables(), _findReverseJoinPartner(), _initializeDriver(), _recursiveStructuredFetch(), _resolveLinks(), _setItemClass(), _setJoinPartner(), addResultField(), copyItem(), count(), createNewItem(), delete(), deleteBy(), deleteByWhereClause(), deleteWhere(), deleteWhereGroup(), exists(), fetchArray(), fetchById(), fetchObject(), fetchTable(), flexSelect(), getAllIds(), getFieldsByWhereClause(), getIdsByWhereClause(), link(), loadItem(), next(), query(), queryAndFetchStructured(), removeResultField(), resetQuery(), select(), setEncoding(), setGroupCondition(), setInnerGroupCondition(), setLimit(), setOrder(), setWhere(), setWhereGroup()
Methods inherited from cItemBaseAbstract
_getPropertiesCollectionInstance(), _getSecondDBInstance(), escape()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties summary
protected integer $cfg 0
#
protected cDb $db 0
#

Database instance, contains the database object

Database instance, contains the database object

protected integer $item 0
#
protected integer $languageSync 0
#
protected integer $idContentType 0
#
Properties inherited from ItemCollection
$_JoinPartners, $_aOperators, $_bAllMode, $_collectionCache, $_driver, $_encoding, $_forwardJoinPartners, $_groupConditions, $_innerGroupConditions, $_itemClass, $_itemClassInstance, $_iteratorItem, $_lastSQL, $_limitCount, $_limitStart, $_links, $_order, $_resultFields, $_where, $_whereRestriction, $objects
Properties inherited from cItemBaseAbstract
$_className, $_oCache, $_settings, $lasterror, $primaryKey, $properties, $secondDb, $table, $virgin
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0