略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: hw_api::remove

2024-12-21

hw_api::remove

(PHP 4, PHP 5 < 5.2.0, PECL hwapi SVN)

hw_api::removeDelete an object

说明

hw_api::remove ( array $parameter ) : bool

Removes an object from the specified parent. Collections will be removed recursively.

参数

parameter

You can pass an optional object query to remove only those objects which match the query. An object will be deleted physically if it is the last instance.

The parameter array contains the required elements 'objectidentifier' and 'parentidentifier'. If you want to remove a user or group 'parentidentifier' can be skipped.

The optional parameter 'mode' determines how the deletion is performed. In normal mode the object will not be removed physically until all instances are removed. In physical mode all instances of the object will be deleted immediately. In removelinks mode all references to and from the objects will be deleted as well. In nonrecursive the deletion is not performed recursive. Removing a collection which is not empty will cause an error.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/hwapi.remove.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3