本文整理汇总了PHP中ArtefactType::bulk_delete方法的典型用法代码示例。如果您正苦于以下问题:PHP ArtefactType::bulk_delete方法的具体用法?PHP ArtefactType::bulk_delete怎么用?PHP ArtefactType::bulk_delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ArtefactType
的用法示例。
在下文中一共展示了ArtefactType::bulk_delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bulk_delete
/**
* Delete annotationfeedback records in the artefact table and the artefat_annotation_feedback table.
*
* @param array $artefactids is a list of artefactids representing the annotationfeedback artefacts.
*/
public static function bulk_delete($artefactids)
{
if (empty($artefactids)) {
return;
}
$idstr = join(',', array_map('intval', $artefactids));
db_begin();
delete_records_select('artefact_annotation_feedback', 'artefact IN (' . $idstr . ')');
parent::bulk_delete($artefactids);
db_commit();
}
示例2: bulk_delete
public static function bulk_delete($artefactids)
{
if (empty($artefactids)) {
return;
}
$idstr = join(',', array_map('intval', $artefactids));
db_begin();
delete_records_select('artefact_comment_comment', 'artefact IN (' . $idstr . ')');
delete_records_select('artefact_file_embedded', 'resourcetype = ? AND resourceid IN (' . $idstr . ')', array('comment'));
parent::bulk_delete($artefactids);
db_commit();
}