Documentation

smiley extends file
in package
implements Serializable, JsonSerializable

Smiley file objekt

Tags
author

Stefan Seehafer sea75300@yahoo.de

copyright

(c) 2011-2020, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

Interfaces, Classes, Traits and Enums

Serializable
JsonSerializable

Table of Contents

$cache  : cache
Cache-Objekt
$cacheModule  : string
Cache Modul
$cacheName  : string
Cache name
$config  : config
System-Config-Objekt
$content  : string
Dateiinhalt
$data  : array<string|int, mixed>
data-Array für nicht weiter definierte Eigenschaften
$dbcon  : database
DB-Verbindung
$dbParams  : array<string|int, mixed>
Felder die in Datenbank gespeichert werden können
$events  : events
Event-Liste
$extension  : string
Dateierweiterung
$filename  : string
Dateiname
$filepath  : string
Dateispfad
$filesize  : int
Dateigröße
$fullpath  : string
Dateipfad inkl. Dateiname
$height  : int
Bild-Höhe
$id  : int
ID von Datei-Eintrag in DB
$language  : language
System-Sprachen-Objekt
$notifications  : notifications
Notifications
$table  : string
Tabellen-Name
$thiscode  : string
Smiley-Code, der in Artikeln und Kommentaren geparst werden soll
$whstring  : string
String in der Form width="" height=""
$width  : int
Bild-Breite
__construct()  : bool
Konstruktor
delete()  : bool
Smiley löschen
escapeFileName()  : mixed
Bereinigt Dateiname von problematischen Zeichen
exists()  : bool
Prüft ob Smiley existiert
getContent()  : string
Dateiinhalt
getData()  : array<string|int, mixed>
Gibt Inhalt von "data" zurück
getEditLink()  : string
Gibt Link für Edit-Action zurück
getEditorImageTag()  : string
Returns smiley image tag
getExtension()  : string
Erweiterung
getFileHash()  : string
File SHA256 hash
getFilename()  : string
Dateiname
getFileNameHash()  : string
Return hash based on filename
getFilepath()  : string
Dateipfad
getFilesize()  : int
Dateigröße
getFullpath()  : string
Dateipfad + Dateiname
getHeight()  : int
Smiley-Höhe auslesen
getId()  : int
Datensatz-ID
getImageTag()  : string
Returns smiley image tag
getModificationTime()  : int
Return file upload time in file system
getSmileyCode()  : string
Smiley-Code auslesen
getSmileyUrl()  : string
Smiley-URL ausgeben
getWhstring()  : string
String width="" height="" auslesen
getWidth()  : inz
Smiley-Breite auslesen
initById()  : bool
Fetch smileyy data by id
initImageSize()  : bool
Fetch image dimensions from file
isReadable()  : bool
ist Datei lesbar
isValidDataFolder()  : bool
Check if fullpath is valid path in /data folder structure
isWritable()  : bool
ist Datei beschreibbar
loadContent()  : bool
Lädt Inhalt von gespeicherter Datei
moveUploadedFile()  : bool
Verschiebt via PHP Upload hochgeladene Datei von tmp-Pfad nach Zielpfad
rename()  : bool
nicht verwendet
retrieveFileExtension()  : string
Retrieve file extension via pathinfo
retrieveFileName()  : string
Retrieve file name via pathinfo
retrieveRealType()  : string
Retrieve real file path via finfo
save()  : bool
Speichert einen neuen Smiley-Eintrag in der Datenbank
setContent()  : mixed
Dateiinhalt setzen
setFilename()  : mixed
Dateiname setzen
setId()  : mixed
Datensatz ID setzen
setSmileycode()  : mixed
Smiley-Code setzen
update()  : bool
nicht verwendet
writeContent()  : bool
Lädt Inhalt von gespeicherter Datei
basePath()  : string
Returns base path for file
getSaveValues()  : array<string|int, mixed>
Gibt Speicher-Values zurück
init()  : bool
initialisiert Bild-Objekt
realpathNoExists()  : string
"realpath" wrapper for non-existing files

Properties

$cacheModule

Cache Modul

protected string $cacheModule = ''
Tags
since
3.4

$cacheName

Cache name

protected string $cacheName = false

$content

Dateiinhalt

protected string $content

$data

data-Array für nicht weiter definierte Eigenschaften

protected array<string|int, mixed> $data

$dbParams

Felder die in Datenbank gespeichert werden können

protected array<string|int, mixed> $dbParams = ['smileycode', 'filename']

$extension

Dateierweiterung

protected string $extension

$filename

Dateiname

protected string $filename

$filepath

Dateispfad

protected string $filepath

$filesize

Dateigröße

protected int $filesize

$fullpath

Dateipfad inkl. Dateiname

protected string $fullpath

$height

Bild-Höhe

protected int $height

$id

ID von Datei-Eintrag in DB

protected int $id

$table

Tabellen-Name

protected string $table

$thiscode

Smiley-Code, der in Artikeln und Kommentaren geparst werden soll

protected string $thiscode

$whstring

String in der Form width="" height=""

protected string $whstring

$width

Bild-Breite

protected int $width

Methods

__construct()

Konstruktor

public __construct([string $filename = '' ][, bool $initDB = true ]) : bool
Parameters
$filename : string = ''
$initDB : bool = true
Return values
bool

delete()

Smiley löschen

public delete() : bool
Return values
bool

escapeFileName()

Bereinigt Dateiname von problematischen Zeichen

public escapeFileName(string &$filename) : mixed
Parameters
$filename : string
Return values
mixed

exists()

Prüft ob Smiley existiert

public exists([bool $dbOnly = false ]) : bool
Parameters
$dbOnly : bool = false
Return values
bool

getContent()

Dateiinhalt

public getContent() : string
Return values
string

getData()

Gibt Inhalt von "data" zurück

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

Gibt Link für Edit-Action zurück

public getEditLink() : string
Return values
string

getEditorImageTag()

Returns smiley image tag

public getEditorImageTag() : string
Tags
since
4
Return values
string

getExtension()

Erweiterung

public getExtension() : string
Return values
string

getFileHash()

File SHA256 hash

public getFileHash() : string
Tags
since
4.1
Return values
string

getFilename()

Dateiname

public getFilename() : string
Return values
string

getFileNameHash()

Return hash based on filename

public getFileNameHash() : string
Tags
since
5.0.0-a1
Return values
string

getFilepath()

Dateipfad

public getFilepath() : string
Return values
string

getFilesize()

Dateigröße

public getFilesize() : int
Return values
int

getFullpath()

Dateipfad + Dateiname

public getFullpath() : string
Return values
string

getHeight()

Smiley-Höhe auslesen

public getHeight() : int
Return values
int

getId()

Datensatz-ID

public getId() : int
Return values
int

getImageTag()

Returns smiley image tag

public getImageTag() : string
Tags
since
4
Return values
string

getModificationTime()

Return file upload time in file system

public getModificationTime() : int
Return values
int

getSmileyCode()

Smiley-Code auslesen

public getSmileyCode() : string
Return values
string

getSmileyUrl()

Smiley-URL ausgeben

public getSmileyUrl() : string
Return values
string

getWhstring()

String width="" height="" auslesen

public getWhstring() : string
Return values
string

getWidth()

Smiley-Breite auslesen

public getWidth() : inz
Return values
inz

initById()

Fetch smileyy data by id

public initById() : bool
Return values
bool

initImageSize()

Fetch image dimensions from file

public initImageSize() : bool
Return values
bool

isReadable()

ist Datei lesbar

public isReadable() : bool
Tags
since
3.5
Return values
bool

isValidDataFolder()

Check if fullpath is valid path in /data folder structure

public isValidDataFolder([string $path = '' ][, string $type = '/' ]) : bool
Parameters
$path : string = ''
$type : string = '/'
Tags
since
4.1
Return values
bool

isWritable()

ist Datei beschreibbar

public isWritable() : bool
Tags
since
3.5
Return values
bool

loadContent()

Lädt Inhalt von gespeicherter Datei

public loadContent() : bool
Tags
since
3.5
Return values
bool

moveUploadedFile()

Verschiebt via PHP Upload hochgeladene Datei von tmp-Pfad nach Zielpfad

public moveUploadedFile(string $uploadedPath) : bool
Parameters
$uploadedPath : string
Tags
since
3.3
Return values
bool

rename()

nicht verwendet

public rename(string $newname[, string $userid = false ]) : bool
Parameters
$newname : string
$userid : string = false
Return values
bool

retrieveFileExtension()

Retrieve file extension via pathinfo

public static retrieveFileExtension(string $filename) : string
Parameters
$filename : string
Tags
since
4.5
Return values
string

retrieveFileName()

Retrieve file name via pathinfo

public static retrieveFileName(string $filename) : string
Parameters
$filename : string
Tags
since
5.0
Return values
string

retrieveRealType()

Retrieve real file path via finfo

public static retrieveRealType(string $path) : string
Parameters
$path : string
Tags
since
5.0.0-a3
Return values
string

save()

Speichert einen neuen Smiley-Eintrag in der Datenbank

public save() : bool
Return values
bool

setContent()

Dateiinhalt setzen

public setContent(string $content) : mixed
Parameters
$content : string
Return values
mixed

setFilename()

Dateiname setzen

public setFilename(string $filename) : mixed
Parameters
$filename : string
Return values
mixed

setId()

Datensatz ID setzen

public setId(int $id) : mixed
Parameters
$id : int
Return values
mixed

setSmileycode()

Smiley-Code setzen

public setSmileycode(string $thiscode) : mixed
Parameters
$thiscode : string
Return values
mixed

update()

nicht verwendet

public update() : bool
Return values
bool

writeContent()

Lädt Inhalt von gespeicherter Datei

public writeContent() : bool
Tags
since
4.2
Return values
bool

basePath()

Returns base path for file

protected basePath(string $filename) : string
Parameters
$filename : string
Return values
string

getSaveValues()

Gibt Speicher-Values zurück

protected getSaveValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

init()

initialisiert Bild-Objekt

protected init(bool $initDB) : bool
Parameters
$initDB : bool
Return values
bool

realpathNoExists()

"realpath" wrapper for non-existing files

protected realpathNoExists(string $path) : string
Parameters
$path : string
Tags
since
4.5
see
ops::realpathNoExists
Return values
string

Search results