本文整理汇总了PHP中assQuestion::cleanupMediaObjectUsage方法的典型用法代码示例。如果您正苦于以下问题:PHP assQuestion::cleanupMediaObjectUsage方法的具体用法?PHP assQuestion::cleanupMediaObjectUsage怎么用?PHP assQuestion::cleanupMediaObjectUsage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类assQuestion
的用法示例。
在下文中一共展示了assQuestion::cleanupMediaObjectUsage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: saveCmd
/**
* command for processing the submitted feedback editing form.
* first it validates the submitted values.
* - in case of successfull validation it saves the properties and redirects to either form presentation again,
* or to the syncWithOriginal form for question
* - in case of failed validation it renders the form with post values and error info to the content area again
*
* @access private
*/
private function saveCmd()
{
$form = $this->buildForm();
$form->setValuesByPost();
if ($form->checkInput()) {
$this->feedbackOBJ->saveGenericFormProperties($form);
$this->feedbackOBJ->saveSpecificFormProperties($form);
$this->questionOBJ->cleanupMediaObjectUsage();
if ($this->isSyncAfterSaveRequired()) {
ilUtil::sendSuccess($this->lng->txt('saved_successfully'), true);
$this->ctrl->redirect($this, self::CMD_SHOW_SYNC);
}
ilUtil::sendSuccess($this->lng->txt('saved_successfully'), true);
$this->ctrl->redirect($this, self::CMD_SHOW);
}
ilUtil::sendFailure($this->lng->txt('form_input_not_valid'));
$this->tpl->setContent($this->ctrl->getHTML($form));
}