imagelist
extends filelist
in package
implements
gsearchIndex
Image list object
Tags
Interfaces, Classes, Traits and Enums
- gsearchIndex
- FanPress CM Model global search indexer
Table of Contents
- $basepath : string
- Dateilisten-Basispfad
- $cache : cache
- System-Cache
- $cacheModule : string
- Cache Modul
- $cacheName : string
- Cache name
- $config : config
- System-Config-Objekt
- $data : array<string|int, mixed>
- Data array
- $dbcon : database
- DB-Verbindung
- $events : events
- Event-Liste
- $exts : array<string|int, mixed>
- erlaute Dateierweiterungen
- $language : language
- System-Sprachen-Objekt
- $notifications : notifications
- Notifications
- $pathprefix : string
- Dateilisten-Basispfad
- $table : string
- Tabellen-Name
- $finfo : finfo
- finfo instance
- $indexUserId : int
- User id to use for file indexing
- __construct() : mixed
- Konstruktor
- __destruct() : void
- Konstruktor
- createFilemanagerThumbs() : bool
- Creates file manager thumbnails
- getCountQuery() : selectParams
- Get count query string
- getDatabaseCountByCondition() : array<string|int, mixed>
- Fetch file index by condition
- getDatabaseFileCount() : int
- Liefert Anzahl von Dateieinträgen in Datenbank zurück
- getDatabaseList() : array<string|int, mixed>
- Gibt Dateiindex in Datenbank zurück
- getDatabaseListByCondition() : array<string|int, mixed>
- Fetch file index by condition
- getElementIcon() : icon
- Return link icon
- getElementLink() : string
- Return link to element link
- getFolderList() : array<string|int, mixed>
- Return list of files in file system
- getPathprefix() : string
- Gibt Pfadprefix zurück
- getSearchQuery() : selectParams
- Get query string
- getUploadFolderSize() : int
- Gibt aktuelle Größe des upload-Ordners in byte zurück
- prepareText() : string
- Prepare result text
- removeBasePath() : bool
- Removes base path from give path
- setPathprefix() : mixed
- Setzt Pfadprefix
- updateFileIndex() : bool
- Updates file index
- addToIndex() : bool
- Add single file to index
- assignMultipleSearchParams() : bool
- Assigns search params object to value arrays
- assignSearchParams() : bool
- Assigns search params from search object to where condition
- getSearchQueryObj() : selectParams
- Returns selectParams object instance
Properties
$basepath
Dateilisten-Basispfad
protected
string
$basepath
= ''
$cache
System-Cache
protected
cache
$cache
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
Tags
$cacheName
Cache name
protected
string
$cacheName
= false
$config
System-Config-Objekt
protected
config
$config
$data
Data array
protected
array<string|int, mixed>
$data
= []
Tags
$dbcon
DB-Verbindung
protected
database
$dbcon
$events
Event-Liste
protected
events
$events
$exts
erlaute Dateierweiterungen
protected
array<string|int, mixed>
$exts
= []
$language
System-Sprachen-Objekt
protected
language
$language
$notifications
Notifications
protected
notifications
$notifications
Tags
$pathprefix
Dateilisten-Basispfad
protected
string
$pathprefix
= ''
$table
Tabellen-Name
protected
string
$table
$finfo
finfo instance
private
finfo
$finfo
= null
Tags
$indexUserId
User id to use for file indexing
private
int
$indexUserId
= 0
Tags
Methods
__construct()
Konstruktor
public
__construct() : mixed
Return values
mixed —__destruct()
Konstruktor
public
__destruct() : void
Return values
void —createFilemanagerThumbs()
Creates file manager thumbnails
public
createFilemanagerThumbs([array<string|int, mixed>|null $folderFiles = null ][, bool|null $forceAll = null ]) : bool
Parameters
- $folderFiles : array<string|int, mixed>|null = null
- $forceAll : bool|null = null
Return values
bool —getCountQuery()
Get count query string
public
getCountQuery() : selectParams
Tags
Return values
selectParams —getDatabaseCountByCondition()
Fetch file index by condition
public
getDatabaseCountByCondition(search $conditions) : array<string|int, mixed>
Parameters
- $conditions : search
Return values
array<string|int, mixed> —getDatabaseFileCount()
Liefert Anzahl von Dateieinträgen in Datenbank zurück
public
getDatabaseFileCount() : int
Tags
Return values
int —getDatabaseList()
Gibt Dateiindex in Datenbank zurück
public
getDatabaseList([int $limit = false ][, int $offset = false ]) : array<string|int, mixed>
Parameters
- $limit : int = false
- $offset : int = false
Return values
array<string|int, mixed> —getDatabaseListByCondition()
Fetch file index by condition
public
getDatabaseListByCondition(search $conditions) : array<string|int, mixed>
Parameters
- $conditions : search
Return values
array<string|int, mixed> —getElementIcon()
Return link icon
public
getElementIcon() : icon
Tags
Return values
icon —getElementLink()
Return link to element link
public
getElementLink(mixed $filename) : string
Parameters
- $filename : mixed
Tags
Return values
string —getFolderList()
Return list of files in file system
public
getFolderList() : array<string|int, mixed>
Return values
array<string|int, mixed> —getPathprefix()
Gibt Pfadprefix zurück
public
getPathprefix() : string
Return values
string —getSearchQuery()
Get query string
public
getSearchQuery() : selectParams
Return values
selectParams —getUploadFolderSize()
Gibt aktuelle Größe des upload-Ordners in byte zurück
public
getUploadFolderSize() : int
Return values
int —prepareText()
Prepare result text
public
prepareText(string $text) : string
Parameters
- $text : string
Return values
string —removeBasePath()
Removes base path from give path
public
removeBasePath(string &$path) : bool
Parameters
- $path : string
Return values
bool —setPathprefix()
Setzt Pfadprefix
public
setPathprefix(string $pathprefix) : mixed
Parameters
- $pathprefix : string
Return values
mixed —updateFileIndex()
Updates file index
public
updateFileIndex(int $userId) : bool
Parameters
- $userId : int
Return values
bool —addToIndex()
Add single file to index
private
addToIndex(string $file) : bool
Parameters
- $file : string
Tags
Return values
bool —assignMultipleSearchParams()
Assigns search params object to value arrays
private
assignMultipleSearchParams(search $conditions, array<string|int, mixed> &$where, array<string|int, mixed> &$valueParams, string $combination) : bool
Parameters
- $conditions : search
- $where : array<string|int, mixed>
- $valueParams : array<string|int, mixed>
- $combination : string
Return values
bool —assignSearchParams()
Assigns search params from search object to where condition
private
assignSearchParams(search $conditions, array<string|int, mixed> &$where, array<string|int, mixed> &$valueParams, string $combination) : bool
Parameters
- $conditions : search
- $where : array<string|int, mixed>
- $valueParams : array<string|int, mixed>
- $combination : string
Tags
Return values
bool —getSearchQueryObj()
Returns selectParams object instance
private
getSearchQueryObj() : selectParams