コード例 #1
0
 /**
  * ensures a no more existing page object for given type and id
  * 
  * @final
  * @access protected
  * @param type $pageObjectType
  * @param type $pageObjectId
  */
 protected final function ensurePageObjectDeleted($pageObjectType, $pageObjectId)
 {
     if ($pageObjectType == ilAssQuestionFeedback::PAGE_OBJECT_TYPE_GENERIC_FEEDBACK) {
         include_once "./Modules/TestQuestionPool/classes/feedback/class.ilAssGenFeedbackPage.php";
         if (ilAssGenFeedbackPage::_exists($pageObjectType, $pageObjectId)) {
             $pageObject = new ilAssGenFeedbackPage($pageObjectId);
             $pageObject->delete();
         }
     }
     if ($pageObjectType == ilAssQuestionFeedback::PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK) {
         include_once "./Modules/TestQuestionPool/classes/feedback/class.ilAssSpecFeedbackPage.php";
         if (ilAssSpecFeedbackPage::_exists($pageObjectType, $pageObjectId)) {
             $pageObject = new ilAssSpecFeedbackPage($pageObjectId);
             $pageObject->delete();
         }
     }
 }