当前位置: 首页>>代码示例>>PHP>>正文


PHP ArtefactType::delete方法代码示例

本文整理汇总了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();
 }
开发者ID:rboyatt,项目名称:mahara,代码行数:14,代码来源:lib.php

示例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();
 }
开发者ID:sarahjcotton,项目名称:mahara,代码行数:16,代码来源:lib.php

示例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();
 }
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:11,代码来源:lib.php

示例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();
 }
开发者ID:Br3nda,项目名称:mahara,代码行数:12,代码来源:lib.php

示例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();
 }
开发者ID:richardmansfield,项目名称:richardms-mahara,代码行数:16,代码来源:lib.php

示例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();
 }
开发者ID:vohung96,项目名称:mahara,代码行数:14,代码来源:lib.php


注:本文中的ArtefactType::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。