articlelist
extends tablelist
in
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
$permissions
Permission Object
protected
permissions
$permissions
= false
$dbcon
DB-Verbindung
protected
database
$dbcon
$table
Tabellen-Name
protected
string
$table
$cache
System-Cache
protected
cache
$cache
$events
Event-Liste
protected
events
$events
$config
System-Config-Objekt
protected
config
$config
$language
System-Sprachen-Objekt
protected
language
$language
$notifications
Notifications
protected
notifications
$notifications
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
$data
Data array
protected
array
$data
= []
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
arraygetArticlesActive()
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
arraygetArticlesArchived()
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
arraygetArticlesPostponed()
Gibt Liste mit allen Artikeln zurück, welche automatisch freigeschalten werden sollen
public
getArticlesPostponed(
[ $monthIndex :
bool
= false ]
)
: array
Parameters
- $monthIndex : bool = false
Return values
arraygetArticlesPostponedIDs()
Gibt Liste mit Artikel-IDs zurück, welche automatisch freigeschalten werden sollen
public
getArticlesPostponedIDs(
)
: array
Return values
arraygetArticlesDeleted()
Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb)
public
getArticlesDeleted(
[ $monthIndex :
bool
= false ]
)
: array
Parameters
- $monthIndex : bool = false
Return values
arraygetArticlesDraft()
Gibt Liste mit allen gelöschten Artikeln zurück (Papierkorb)
public
getArticlesDraft(
[ $monthIndex :
bool
= false ]
)
: array
Parameters
- $monthIndex : bool = false
Return values
arraygetArticlesByCondition()
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
arraydeleteArticles()
Verschiebt Artikel in Papierkorb
public
deleteArticles(
$ids :
array
)
: bool
Parameters
- $ids : array
Return values
boolrestoreArticles()
Stellt Artikel aus Papierkorb wieder her
public
restoreArticles(
$ids :
array
)
: bool
Parameters
- $ids : array
Return values
boolpublishPostponedArticles()
Veröffentlicht Article, die freigeschlaten werden sollen
public
publishPostponedArticles(
$ids :
array
)
: bool
Parameters
- $ids : array
Return values
boolemptyTrash()
Empty trash
public
emptyTrash(
)
: bool
Return values
boolemptyTrashByDate()
Empty trash by date
public
emptyTrashByDate(
)
: bool
Return values
boolcountArticlesByUsers()
Gibt Artikel-Anzahl für jeden Benutzer zurück
public
countArticlesByUsers(
[ $userIds :
array
= [] ]
)
: array
Parameters
- $userIds : array = []
Return values
arraycountArticlesByCondition()
Zählt Artikel anhand von Bedingung
public
countArticlesByCondition(
$conditions :
search
)
: int
Parameters
- $conditions : search
Return values
intgetArticleIDsByUser()
Gibt Liste mit Artikel-IDs für übergebenen Benutzer zurück
public
getArticleIDsByUser(
$userId :
int
)
: array
Parameters
- $userId : int
Return values
arraygetMinMaxDate()
Liefert minimalen und maximalen createtime-Timestamp
public
getMinMaxDate(
[ $archived :
int
= false ]
)
: array
Parameters
- $archived : int = false
Tags
Return values
arraymoveArticlesToUser()
Verschiebt Artikel von einem Benutzer zu einem anderen
public
moveArticlesToUser(
$userIdFrom :
int
, $userIdTo :
int
)
: bool
Parameters
- $userIdFrom : int
- $userIdTo : int
Tags
Return values
booldeleteArticlesByUser()
Löscht alle Artikel eines Benutzers
public
deleteArticlesByUser(
$userId :
int
)
: bool
Parameters
- $userId : int
Tags
Return values
booleditArticlesByMass()
Massenbearbeitung
public
editArticlesByMass(
$articleIds :
array
, $fields :
array
)
: mixed
Parameters
- $articleIds : array
- $fields : array
Tags
Return values
mixedgetRelatedItemsCount()
Fetch counts of comments amnd shares for articles
public
getRelatedItemsCount(
[ $ids :
array
= [] ]
)
: array
Parameters
- $ids : array = []
Tags
Return values
arraycreateListResult()
Erzeugt Listen-Result-Array
private
createListResult(
$list :
array
, $monthIndex :
bool
)
: array
Parameters
- $list : array
- $monthIndex : bool
Return values
arrayassignSearchParams()
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
boolassignMultipleSearchParams()
Assigns search params object to value arrays
private
assignMultipleSearchParams(
$conditions :
search
, &$where :
array
, &$valueParams :
array
)
: bool
Parameters
- $conditions : search
- $where : array
- $valueParams : array
Tags
Return values
boolcheckEditPermissions()
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