官方系列教材 - G计划

Joomla开发手册

Events of editor

onPrivacyCanRemoveData

Description

This method is used to determine if the user can remove data on a user request. For example in Joomla core it forbids the user object being removed if the user is a super user. It can also be because you require data to be required for legal reasons or because the user is

Parameters

  • PrivacyTableRequest The request record being processed.
  • JUser The user object of the user requesting record removal (if available).

Return Value

A list of PrivacyRemovalStatus objects. The property canRemove will be checked and the request will be blocked if any of these properties is true. The reason for the first failed plugin will be shown to the user running the deletion.

Called in files

  • administrator/components/com_privacy/models/remove.php

onPrivacyExportRequest

Description

Processes an export request for the data managed by the privacy plugin.

Parameters

  • PrivacyTableRequest The request record being processed.
  • JUser The user object of the user requesting record removal (if available).

Return Value

A list of PrivacyExportDomain associative arrays. These must be classes.

Example:

return array(
	$this->createDomain('user_notes', 'joomla_user_notes_data'),
	$this->createDomain('user_profile', 'joomla_user_profile_data'),
	$this->createCustomFieldsDomain('com_users.user', array($userTable)),
);

 

Called in files

  • administrator/components/com_privacy/models/export.php

onPrivacyRemoveData

Description

Processes a data deletion request for the data managed by the current privacy plugin.

Parameters

  • PrivacyTableRequest The request record being processed.
  • JUser The user object of the user requesting record removal (if available).

Return Value

void

Called in files

  • administrator/components/com_privacy/models/remove.php

作者: 樱木花道

Joomla程序员,从J1.5到J4.x始终都在做Joomla相关开发定制工作,有超过10年行业经验,国内Joomla扩展开发商ZMAX团队的核心成员

作者网站:ZMAX程序人

评论 (0)

  • 最新在前
  • 最佳在前

第3章 处理URL请求参数

第5章 日志

第6章 错误和调试

第10章 缓存

第14章 路由系统