當前位置: 首頁>>代碼示例>>PHP>>正文


PHP assQuestion::isAdditionalContentEditingModePageObject方法代碼示例

本文整理匯總了PHP中assQuestion::isAdditionalContentEditingModePageObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP assQuestion::isAdditionalContentEditingModePageObject方法的具體用法?PHP assQuestion::isAdditionalContentEditingModePageObject怎麽用?PHP assQuestion::isAdditionalContentEditingModePageObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在assQuestion的用法示例。


在下文中一共展示了assQuestion::isAdditionalContentEditingModePageObject方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: fillRow

 /**
  * renders a table row by filling wor data to table row template
  * 
  * @access	public
  * @global	ilCtrl		$ilCtrl
  * @global	ilLanguage	$lng
  * @param	array		$rowData
  */
 public function fillRow($rowData)
 {
     global $ilCtrl, $lng;
     if ($this->tableMode == self::TBL_MODE_ADMINISTRATION) {
         $list = new ilAdvancedSelectionListGUI();
         $list->setListTitle($lng->txt('actions'));
         $list->setId("advsl_hint_{$rowData['hint_id']}_actions");
         if ($this->questionOBJ->isAdditionalContentEditingModePageObject()) {
             $editPointsHref = $ilCtrl->getLinkTargetByClass('ilAssQuestionHintGUI', ilAssQuestionHintGUI::CMD_SHOW_FORM);
             $editPointsHref = ilUtil::appendUrlParameterString($editPointsHref, "hint_id={$rowData['hint_id']}", true);
             $list->addItem($lng->txt('tst_question_hints_table_link_edit_hint_points'), '', $editPointsHref);
             $editPageHref = $ilCtrl->getLinkTargetByClass('ilasshintpagegui', 'edit');
             $editPageHref = ilUtil::appendUrlParameterString($editPageHref, "hint_id={$rowData['hint_id']}", true);
             $list->addItem($lng->txt('tst_question_hints_table_link_edit_hint_page'), '', $editPageHref);
         } else {
             $editHref = $ilCtrl->getLinkTargetByClass('ilAssQuestionHintGUI', ilAssQuestionHintGUI::CMD_SHOW_FORM);
             $editHref = ilUtil::appendUrlParameterString($editHref, "hint_id={$rowData['hint_id']}", true);
             $list->addItem($lng->txt('tst_question_hints_table_link_edit_hint'), '', $editHref);
         }
         $deleteHref = $ilCtrl->getLinkTarget($this->parent_obj, ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE);
         $deleteHref = ilUtil::appendUrlParameterString($deleteHref, "hint_id={$rowData['hint_id']}", true);
         $list->addItem($lng->txt('tst_question_hints_table_link_delete_hint'), '', $deleteHref);
         $this->tpl->setVariable('ACTIONS', $list->getHTML());
         $this->tpl->setVariable('HINT_ID', $rowData['hint_id']);
         $hintIndex = $rowData['hint_index'] * self::INDEX_TO_POSITION_FACTOR;
     } else {
         $showHref = $this->parent_obj->getHintPresentationLinkTarget($rowData['hint_id']);
         $this->tpl->setVariable('HINT_HREF', $showHref);
         $hintIndex = ilAssQuestionHint::getHintIndexLabel($lng, $rowData['hint_index']);
     }
     $this->tpl->setVariable('HINT_INDEX', $hintIndex);
     $this->tpl->setVariable('HINT_TEXT', $rowData['hint_text']);
     $this->tpl->setVariable('HINT_POINTS', $rowData['hint_points']);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:42,代碼來源:class.ilAssQuestionHintsTableGUI.php

示例2: importGenericFeedback

 /**
  * imports the given feedback content as generic feedback for the given question id
  * for either the complete or incomplete solution
  * 
  * @access public
  * @param integer $questionId
  * @param boolean $solutionCompleted
  * @param string $feedbackContent
  */
 public function importGenericFeedback($questionId, $solutionCompleted, $feedbackContent)
 {
     if ($this->questionOBJ->isAdditionalContentEditingModePageObject()) {
         $pageObjectId = $this->getGenericFeedbackPageObjectId($questionId, $solutionCompleted);
         $pageObjectType = $this->getGenericFeedbackPageObjectType();
         $this->createPageObject($pageObjectType, $pageObjectId, $feedbackContent);
     } else {
         $this->saveGenericFeedbackContent($questionId, $solutionCompleted, $feedbackContent);
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:19,代碼來源:class.ilAssQuestionFeedback.php

示例3: isSyncAfterSaveRequired

 /**
  * returns the fact wether the presentation of the question sync2pool form
  * is required after saving the form or not
  * 
  * @access private
  * @return boolean $isSyncAfterSaveRequired
  */
 private function isSyncAfterSaveRequired()
 {
     global $ilUser;
     if (!$_GET["calling_test"]) {
         return false;
     }
     if ($this->questionOBJ->isAdditionalContentEditingModePageObject()) {
         return false;
     }
     if (!$this->questionOBJ->_questionExistsInPool($this->questionOBJ->original_id)) {
         return false;
     }
     if (!assQuestion::_isWriteable($this->object->original_id, $ilUser->getId())) {
         return false;
     }
     return true;
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:24,代碼來源:class.ilAssQuestionFeedbackEditingGUI.php


注:本文中的assQuestion::isAdditionalContentEditingModePageObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。