Documentation

articlelist extends tablelist Uses permissions

FanPress CM Article List Model

Table of Contents

$permissions Permission Object permissions
$dbcon DB-Verbindung database
$table Tabellen-Name string
$cache System-Cache cache
$events Event-Liste events
$config System-Config-Objekt config
$language System-Sprachen-Objekt language
$notifications Notifications notifications
$cacheName Cache name string
$cacheModule Cache Modul string
$data Data array array
__construct() Konstruktor void
getArticlesAll() Gibt Liste mit allen nicht gelöschten Artikeln zurück array
getArticlesActive() Gibt Liste mit allen aktiven Artikeln zurück array
getArticlesArchived() Gibt Liste mit allen archivierten Artikeln zurück array
getArticlesPostponed() Gibt Liste mit allen Artikeln zurück, welche automatisch freigeschalten werden sollen array
getArticlesPostponedIDs() Gibt Liste mit Artikel-IDs zurück, welche automatisch freigeschalten werden sollen array
getArticlesDeleted() Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb) array
getArticlesDraft() Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb) array
getArticlesByCondition() Gibt Liste von Artikeln anhand einer Bedingung zurück array
deleteArticles() Verschiebt Artikel in Papierkorb bool
restoreArticles() Stellt Artikel aus Papierkorb wieder her bool
publishPostponedArticles() Veröffentlicht Article, die freigeschlaten werden sollen bool
emptyTrash() Empty trash bool
emptyTrashByDate() Empty trash by date bool
countArticlesByUsers() Gibt Artikel-Anzahl für jeden Benutzer zurück array
countArticlesByCondition() Zählt Artikel anhand von Bedingung int
getArticleIDsByUser() Gibt Liste mit Artikel-IDs für übergebenen Benutzer zurück array
getMinMaxDate() Liefert minimalen und maximalen createtime-Timestamp array
moveArticlesToUser() Verschiebt Artikel von einem Benutzer zu einem anderen bool
deleteArticlesByUser() Löscht alle Artikel eines Benutzers bool
editArticlesByMass() Massenbearbeitung mixed
getRelatedItemsCount() Fetch counts of comments amnd shares for articles array
createListResult() Erzeugt Listen-Result-Array array
assignSearchParams() Assigns search params from search object to where condition bool
assignMultipleSearchParams() Assigns search params object to value arrays bool
checkEditPermissions() Führt Prüfung durch, ob Artikel bearbeitet werden kann bool
__construct() Konstruktor void
__call() Magische Methode für nicht vorhandene Methoden bool
__callStatic() Magische Methode für nicht vorhandene, statische Methoden bool
__destruct() Konstruktor void

Properties

$table

Tabellen-Name

protected string $table

$cacheName

Cache name

protected string $cacheName = false

$cacheModule

Cache Modul

protected string $cacheModule = ''

Methods

__construct()

Konstruktor

public __construct( ) : void

getArticlesAll()

Gibt Liste mit allen nicht gelöschten Artikeln zurück

public getArticlesAll( [ $monthIndex : bool = false ] [, $limits : array = [] ] [, $countOnly : bool = false ] ) : array
Parameters
$monthIndex : bool = false

Liste mit Monatsindex zurückgeben

$limits : array = []

Anzahl der zurückgegebenen Artikel einschränken array(Start,Anzahl)

$countOnly : bool = false

Verfügbare Artikel nur zählen

Return values
array

getArticlesActive()

Gibt Liste mit allen aktiven Artikeln zurück

public getArticlesActive( [ $monthIndex : bool = false ] [, $limits : array = [] ] [, $countOnly : bool = false ] ) : array
Parameters
$monthIndex : bool = false

Liste mit Monatsindex zurückgeben

$limits : array = []

Anzahl der zurückgegebenen Artikel einschränken array(Start,Anzahl)

$countOnly : bool = false

Verfügbare Artikel nur zählen

Return values
array

getArticlesArchived()

Gibt Liste mit allen archivierten Artikeln zurück

public getArticlesArchived( [ $monthIndex : bool = false ] [, $limits : array = [] ] [, $countOnly : bool = false ] [, $dateLimit : bool = false ] ) : array
Parameters
$monthIndex : bool = false

Liste mit Monatsindex zurückgeben

$limits : array = []

Anzahl der zurückgegebenen Artikel einschränken array(Start,Anzahl)

$countOnly : bool = false

Verfügbare Artikel nur zählen

$dateLimit : bool = false

Einschränkung auf nach Datum

Return values
array

getArticlesPostponed()

Gibt Liste mit allen Artikeln zurück, welche automatisch freigeschalten werden sollen

public getArticlesPostponed( [ $monthIndex : bool = false ] ) : array
Parameters
$monthIndex : bool = false
Return values
array

getArticlesPostponedIDs()

Gibt Liste mit Artikel-IDs zurück, welche automatisch freigeschalten werden sollen

public getArticlesPostponedIDs( ) : array
Return values
array

getArticlesDeleted()

Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb)

public getArticlesDeleted( [ $monthIndex : bool = false ] ) : array
Parameters
$monthIndex : bool = false
Return values
array

getArticlesDraft()

Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb)

public getArticlesDraft( [ $monthIndex : bool = false ] ) : array
Parameters
$monthIndex : bool = false
Return values
array

getArticlesByCondition()

Gibt Liste von Artikeln anhand einer Bedingung zurück

public getArticlesByCondition( $conditions : search [, $monthIndex : bool = false ] ) : array
Parameters
$conditions : search
$monthIndex : bool = false
Return values
array

deleteArticles()

Verschiebt Artikel in Papierkorb

public deleteArticles( $ids : array ) : bool
Parameters
$ids : array
Return values
bool

restoreArticles()

Stellt Artikel aus Papierkorb wieder her

public restoreArticles( $ids : array ) : bool
Parameters
$ids : array
Return values
bool

publishPostponedArticles()

Veröffentlicht Article, die freigeschlaten werden sollen

public publishPostponedArticles( $ids : array ) : bool
Parameters
$ids : array
Return values
bool

emptyTrash()

Empty trash

public emptyTrash( ) : bool
Return values
bool

emptyTrashByDate()

Empty trash by date

public emptyTrashByDate( ) : bool
Return values
bool

countArticlesByUsers()

Gibt Artikel-Anzahl für jeden Benutzer zurück

public countArticlesByUsers( [ $userIds : array = [] ] ) : array
Parameters
$userIds : array = []
Return values
array

countArticlesByCondition()

Zählt Artikel anhand von Bedingung

public countArticlesByCondition( $conditions : search ) : int
Parameters
$conditions : search
Return values
int

getArticleIDsByUser()

Gibt Liste mit Artikel-IDs für übergebenen Benutzer zurück

public getArticleIDsByUser( $userId : int ) : array
Parameters
$userId : int
Return values
array

getMinMaxDate()

Liefert minimalen und maximalen createtime-Timestamp

public getMinMaxDate( [ $archived : int = false ] ) : array
Parameters
$archived : int = false
Tags
since
Return values
array

moveArticlesToUser()

Verschiebt Artikel von einem Benutzer zu einem anderen

public moveArticlesToUser( $userIdFrom : int , $userIdTo : int ) : bool
Parameters
$userIdFrom : int
$userIdTo : int
Tags
since
Return values
bool

deleteArticlesByUser()

Löscht alle Artikel eines Benutzers

public deleteArticlesByUser( $userId : int ) : bool
Parameters
$userId : int
Tags
since
Return values
bool

editArticlesByMass()

Massenbearbeitung

public editArticlesByMass( $articleIds : array , $fields : array ) : mixed
Parameters
$articleIds : array
$fields : array
Tags
since
Return values
mixed

getRelatedItemsCount()

Fetch counts of comments amnd shares for articles

public getRelatedItemsCount( [ $ids : array = [] ] ) : array
Parameters
$ids : array = []
Tags
since
Return values
array

createListResult()

Erzeugt Listen-Result-Array

private createListResult( $list : array , $monthIndex : bool ) : array
Parameters
$list : array
$monthIndex : bool
Return values
array

assignSearchParams()

Assigns search params from search object to where condition

private assignSearchParams( $conditions : search , &$where : array , &$valueParams : array ) : bool
Parameters
$conditions : search
$where : array
$valueParams : array
Return values
bool

assignMultipleSearchParams()

Assigns search params object to value arrays

private assignMultipleSearchParams( $conditions : search , &$where : array , &$valueParams : array ) : bool
Parameters
$conditions : search
$where : array
$valueParams : array
Tags
since
Return values
bool

checkEditPermissions()

Führt Prüfung durch, ob Artikel bearbeitet werden kann

public checkEditPermissions( &$article : article ) : bool
Parameters
$article : article
Return values
bool

__construct()

Konstruktor

public __construct( ) : void

__call()

Magische Methode für nicht vorhandene Methoden

public __call( $name : string , $arguments : mixed ) : bool
Parameters
$name : string
$arguments : mixed
Return values
bool

__callStatic()

Magische Methode für nicht vorhandene, statische Methoden

public static __callStatic( $name : string , $arguments : mixed ) : bool
Parameters
$name : string
$arguments : mixed
Return values
bool

__destruct()

Konstruktor

public __destruct( ) : void

Search results