當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。