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
    • 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( )

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

ItemCollection::__construct()
public multitype:
# getAllCommentedArticles( )

Returns

multitype:
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 multitype:
# _getCommentHierachrie( unknown_type $id_cat, unknown_type $id_art, unknown_type $id_lang )

Parameters

$id_cat
unknown_type
$id_cat
$id_art
unknown_type
$id_art
$id_lang
unknown_type
$id_lang

Returns

multitype:
public
# normalizeArray( unknown_type $arrforum, unknown_type & $result, unknown_type $level = 0 )

Parameters

$arrforum
unknown_type
$arrforum
$result
unknown_type
$result
$level
unknown_type
$level
public
# getTreeLevel( unknown_type $id_cat, unknown_type $id_art, unknown_type $id_lang, unknown_type & $arrUsers, unknown_type & $arrforum, unknown_type $parent = 0, unknown_type $frontend = false )

Parameters

$id_cat
unknown_type
$id_cat
$id_art
unknown_type
$id_art
$id_lang
unknown_type
$id_lang
$arrUsers
unknown_type
$arrUsers
$arrforum
unknown_type
$arrforum
$parent
unknown_type
$parent
$frontend
unknown_type
$frontend
public
# updateValues( unknown_type $id_user_forum, unknown_type $name, unknown_type $email, unknown_type $like, unknown_type $dislike, unknown_type $forum, unknown_type $online, unknown_type $checked )

Parameters

$id_user_forum
unknown_type
$id_user_forum
$name
unknown_type
$name
$email
unknown_type
$email
$like
unknown_type
$like
$dislike
unknown_type
$dislike
$forum
unknown_type
$forum
$online
unknown_type
$online
$checked
unknown_type
$checked
public
# toggleOnlineState( mixed $onlineState, integer $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
integer
$id_user_forum primary key
public
# mailToModerator( unknown_type $realname, unknown_type $email, unknown_type $forum, unknown_type $idart, unknown_type $lang, unknown_type $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.

Parameters

$realname
unknown_type
$realname
$email
unknown_type
$email
$forum
unknown_type
$forum
$idart
unknown_type
$idart
$lang
unknown_type
$lang
$forum_quote
unknown_type
$forum_quote
public multitype:
# getArticleTitle( unknown_type $idart, unknown_type $idlang )

Parameters

$idart
unknown_type
$idart
$idlang
unknown_type
$idlang

Returns

multitype:
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 multitype:NULL
# selectNameAndNameByForumId( unknown_type $idquote )

Parameters

$idquote
unknown_type
$idquote

Returns

multitype:NULL
public
# selectUser( unknown_type $userid )

Parameters

$userid
unknown_type
$userid
public
# incrementLike( mixed $forum_user_id )

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

this function increments 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 multitype:
# getExistingforumFrontend( unknown_type $id_cat, unknown_type $id_art, unknown_type $id_lang, unknown_type $frontend )

Parameters

$id_cat
unknown_type
$id_cat
$id_art
unknown_type
$id_art
$id_lang
unknown_type
$id_lang
$frontend
unknown_type
$frontend

Returns

multitype:
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 unknown_type
# getlanguageSync( )

Returns

unknown_type
multitype:
public multitype:NULL
# getCommentContent( unknown_type $id_user_forum )

Parameters

$id_user_forum
unknown_type
$id_user_forum

Returns

multitype:NULL
Ambigous <mixed, boolean>
protected Ambigous
# getIdUserForumContenType( )

Returns

Ambigous
<mixed, unknown>|boolean
Methods inherited from 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 unknown_type $cfg 0
#
protected unknown_type $db 0
#
protected unknown_type $item 0
#
protected unknown_type $languageSync 0
#
protected unknown_type $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.1 API documentation generated by ApiGen 2.8.0