コード例 #1
0
ファイル: LibertyItag.php プロジェクト: bitweaver/itags
 /**
  * This function removes a single image area tag
  **/
 function expunge_tag($itagId)
 {
     $ret = FALSE;
     $storeComment = new LibertyComment(@BitBase::verifyId($itagId) ? $itagId : NULL);
     $storeComment->mDb->StartTrans();
     if ($storeComment->verifyId($storeComment->mCommentId)) {
         $storeComment->mDb->query("DELETE FROM `" . BIT_DB_PREFIX . "itags_image_areas` WHERE `attachment_id`=? and `comment_id`=?", array($this->mAttachementId, $storeComment->mCommentId));
     }
     $storeComment->expunge();
     $storeComment->mDb->CompleteTrans();
     $this->load();
     return $ret;
 }