App\PersonalDataRequest

Inherited from cmsApplication_List

Protected Attributes

protected $data_directories= ['archives' => '/data/private/gdpr']

Protected Methods

protected onAfterSaveItem(array $datavalues, array $original_datavalues, array $previous_item, array $retval)
Do something after save item
protected sendEmail(string $email, string $template_name, string $email_vars)
$SystemMail
protected arrayvalidateEmailAndRequestType(string $email, int $request_type)
Returns the error list of request validation
protected arraygetRequestByGUIDAndAuthCode(string $guid, int $auth_code)
Returns a record by GUID and auth code $SystemDB
protected arraygetConfirmedDataRequestOnlyByGUID(string $guid)
Returns an array of data request if the request type = 1 (data request), not delete/removal $SystemDB
protected confirmRequest(int $id)
Confirm user request

Public Methods

public __construct()
Constructor $SystemDB
public booleanviewMainPage(int $pg=1)
View Main Page
public getMainPageMetaOptionKeys()
public bool|array String arraygetValidationErrorListBeforeSaveItem(array $datavalues)
Validates save item. If there's an error, it will return an array with one or more error string, otherwise it will return a boolean true $CurrentUser
public arrayonModifyDataBeforeSaveItem(array $datavalues)
Before save item
public loadDefaultStaticAssetFiles()
Load default JS and CSS required for frontend $HTMLHeader
public getActivityReportByEmail($email, $request_type, $reason)
public getActivityReportByUserID($user_id, $request_type, $reason)
public arrayajxp_Request()
AJAX POST handler for action: Request
public arrayajxp_ConfirmRequest()
AJAX POST handler for action: Request
public booleanviewConfirmPage($command)
View Confirm Page
public downloadArchive($command)
public booleanRun(array $command)
Run Command