userDataExport
in package
Class for exporting possible privacy related user data
Tags
Table of Contents
Properties
- $data : mixed
- $galleryobj : mixed
- $usermail : mixed
- $username : mixed
Methods
- __construct() : mixed
- generateFilename() : string
- Generates the file name of the report to download
- getAlbumData() : array<string|int, mixed>
- Gets the album data
- getAllData() : array<string|int, mixed>
- Gets all available data as an array
- getCommentData() : array<string|int, mixed>
- Gets comment data
- getGalleryData() : array<string|int, mixed>
- Gets gallery guest user if exists
- getGeneralData() : array<string|int, mixed>
- Generates the general info part
- getImageData() : array<string|int, mixed>
- Gets the image data
- getSecurityLogData() : mixed
- Gets user data from the security log
- getUserData() : array<string|int, mixed>
- Gets user account data
- getZenpageData() : array<string|int, mixed>
- Gets the album data
- printDataReport() : string
- Generates the actual report
- printLink() : string
- Helper method for printDataReport() to return a link element if $value is an url.
- printList() : mixed
- printUserAccountExportLinks() : mixed
- Prints the links to export from a user account itself
- processFileDownload() : mixed
- Handles the download of the data report file
Properties
$data
public
mixed
$data
= array()
$galleryobj
public
mixed
$galleryobj
= ''
$usermail
public
mixed
$usermail
= ''
$username
public
mixed
$username
= ''
Methods
__construct()
public
__construct(mixed $username, mixed $usermail, mixed $galleryobj) : mixed
Parameters
- $username : mixed
- $usermail : mixed
- $galleryobj : mixed
generateFilename()
Generates the file name of the report to download
public
generateFilename([string $dataformat = 'html' ]) : string
Parameters
- $dataformat : string = 'html'
-
"html" or "json"
Return values
stringgetAlbumData()
Gets the album data
public
getAlbumData(string $field) : array<string|int, mixed>
Parameters
- $field : string
-
"owner", "user", "lastchangeuser"
Return values
array<string|int, mixed>getAllData()
Gets all available data as an array
public
getAllData() : array<string|int, mixed>
Return values
array<string|int, mixed>getCommentData()
Gets comment data
public
getCommentData(string $field) : array<string|int, mixed>
Parameters
- $field : string
-
"owner", "user", "lastchangeuser"
Return values
array<string|int, mixed>getGalleryData()
Gets gallery guest user if exists
public
getGalleryData() : array<string|int, mixed>
Return values
array<string|int, mixed>getGeneralData()
Generates the general info part
public
getGeneralData() : array<string|int, mixed>
Return values
array<string|int, mixed>getImageData()
Gets the image data
public
getImageData(string $field) : array<string|int, mixed>
Parameters
- $field : string
-
"owner" or "user"
Return values
array<string|int, mixed>getSecurityLogData()
Gets user data from the security log
public
getSecurityLogData() : mixed
getUserData()
Gets user account data
public
getUserData() : array<string|int, mixed>
Return values
array<string|int, mixed>getZenpageData()
Gets the album data
public
getZenpageData(mixed $itemtype, string $field) : array<string|int, mixed>
Parameters
- $itemtype : mixed
- $field : string
-
"author", "lastchangeuser", "user" (Note that on some items there are not all of these existing)
Return values
array<string|int, mixed>printDataReport()
Generates the actual report
public
printDataReport([string $dataformat = 'html' ]) : string
Parameters
- $dataformat : string = 'html'
-
"html" or "json"
Return values
stringprintLink()
Helper method for printDataReport() to return a link element if $value is an url.
public
static printLink(string $value) : string
Otherwise returns the value unchanged
Parameters
- $value : string
Return values
stringprintList()
public
static printList(mixed $value) : mixed
Parameters
- $value : mixed
printUserAccountExportLinks()
Prints the links to export from a user account itself
public
static printUserAccountExportLinks(mixed $userobj) : mixed
Parameters
- $userobj : mixed
processFileDownload()
Handles the download of the data report file
public
processFileDownload([string $dataformat = 'html' ]) : mixed
Parameters
- $dataformat : string = 'html'
-
"html" or "json"