本文整理汇总了PHP中ArtefactType::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP ArtefactType::delete方法的具体用法?PHP ArtefactType::delete怎么用?PHP ArtefactType::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ArtefactType
的用法示例。
在下文中一共展示了ArtefactType::delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete()
{
if (empty($this->id)) {
return;
}
db_begin();
$this->detach();
// Don't use EmbeddedImage::delete_embedded_images() - it deletes by
// the fileid. We need to delete by the resourceid.
delete_records('artefact_file_embedded', 'resourceid', $this->id);
delete_records('artefact_annotation_feedback', 'artefact', $this->id);
parent::delete();
db_commit();
}
示例2: delete
/**
* This function extends ArtefactType::delete() by deleting embedded images
*/
public function delete()
{
if (empty($this->id)) {
return;
}
db_begin();
// Delete embedded images in the note
require_once 'embeddedimage.php';
EmbeddedImage::delete_embedded_images('textbox', $this->id);
// Delete the artefact and all children.
parent::delete();
db_commit();
}
示例3: delete
public function delete()
{
if (empty($this->id)) {
return;
}
db_begin();
$this->detach();
delete_records('artefact_comment_comment', 'artefact', $this->id);
parent::delete();
db_commit();
}
示例4: delete
public function delete()
{
if (empty($this->id)) {
return;
}
try {
delete_records('artefact_attachment', 'attachment', $this->id);
} catch (Exception $e) {
}
delete_records('artefact_file_files', 'artefact', $this->id);
parent::delete();
}
示例5: delete
/**
* This function extends ArtefactType::delete() by also deleting anything
* that's in blogpost.
*/
public function delete()
{
if (empty($this->id)) {
return;
}
db_begin();
$this->detach();
// Detach all file attachments
delete_records('artefact_blog_blogpost', 'blogpost', $this->id);
parent::delete();
db_commit();
}
示例6: delete
/**
* This function extends ArtefactType::delete() by also deleting anything
* that's in fact.
*/
public function delete()
{
if (empty($this->id)) {
return;
}
db_begin();
delete_records('artefact_milestones_fact', 'artefact', $this->id);
parent::delete();
db_commit();
}