当前位置: 首页>>代码示例>>PHP>>正文


PHP Topic::setTopicID方法代码示例

本文整理汇总了PHP中Topic::setTopicID方法的典型用法代码示例。如果您正苦于以下问题:PHP Topic::setTopicID方法的具体用法?PHP Topic::setTopicID怎么用?PHP Topic::setTopicID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Topic的用法示例。


在下文中一共展示了Topic::setTopicID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getStatisticInfoPie

     // Versuche anzeigen mit bestandenen
     $value = getStatisticInfoPie($t_id);
     if ($value[0][1] == 0 && $value[1][1] == 0) {
         echo '<div class="h8 centered">' . Global_07 . '</div>';
     } else {
         showPie($value);
     }
     break;
 case 'topTen':
     // die besten 10 antworten
     $questions = 0;
     $questions = getQuestions($t_id);
     if (count($questions) == 0) {
         echo '<div class="h8 centered">' . Global_07 . "</div>";
     } else {
         $topics->setTopicID($t_id);
         $topics->setTopic($t_id);
         $Topic = $topics->getTopicName();
         echo "<br /><h2> " . Statistic_01 . " " . stripslashes($Topic) . "<br /></h2>";
         getTopTenCorrect($questions);
     }
     break;
 case 'flopTen':
     // die 10 schlechtest beantworteten Fragen
     $questions = 0;
     $questions = getQuestions($t_id);
     if (count($questions) == 0) {
         echo '<div class="h8 centered">' . Global_07 . "</div>";
     } else {
         $topics->setTopicID($t_id);
         $topics->setTopic($t_id);
开发者ID:eruedin,项目名称:cats,代码行数:31,代码来源:statistic.php

示例2: array

             } else {
                 echo " <meta http-equiv='refresh' content='0; url=?site=topic&amp;action=new_topic&amp;error={$reply}' />";
             }
         }
     }
     break;
 case 'new_topic':
     // neues Topic
     if ($error) {
         $topics->setError($error);
     }
     $topics->newForm();
     break;
 case 'setTopicInactive':
     //inaktiv setzen
     $topics->setTopicID($t_id);
     $topics->setInactiveTopic();
     echo " <meta http-equiv='refresh' content='0; url=?site=topic' />";
     break;
 case 'setTopicAvtive':
     //aktivieren
     $topics->setTopicID($t_id);
     $topics->setActiveTopic();
     echo " <meta http-equiv='refresh' content='0; url=?site=topic' />";
     break;
 case 'delTopic':
     // Löschen eines Themas
     $questionArray = array();
     reallyDelTopic($t_id);
     if ($_REQUEST['submit'] == Global_13) {
         $topics->setTopicID($t_id);
开发者ID:eruedin,项目名称:cats,代码行数:31,代码来源:topic.php

示例3: unset

 unset($_SESSION['values']['t_id']);
 unset($_SESSION['values']['return_site']);
 // Auswahl der gewählten Aktionen
 switch ($action) {
     case 'getQuestions':
         // Fragebogen genererien
         // Überbrüfung auf integer / Wertzuweisung
         $topic = 0;
         if (isset($_REQUEST["t_id"])) {
             $topic = abs(intval($_REQUEST["t_id"]));
         }
         // Session Variable leeren
         if (isset($_SESSION['values']['answerList'])) {
             unset($_SESSION['values']['answerList']);
         }
         $topics->setTopicID($topic);
         $numOfQu = $topics->getNumOfQu();
         $percentage = $topics->getRawToPass();
         $myQuiz->setTopicID($topic);
         $myQuiz->setQuestionLimit($numOfQu);
         $myQuiz->setRawToPass($percentage);
         $value = $myQuiz->generateQuestions();
         if ($value != 'notEnoughQuestions') {
             $myQuiz->getDBAnswers();
             $myQuiz->showQuiz();
             $t_id = $myQuiz->getTopicID();
         }
         break;
     case 'evaluate':
         // Fragebogen auswerten
         //Wertzuweisung und Initalisierung
开发者ID:eruedin,项目名称:cats,代码行数:31,代码来源:start_test.php


注:本文中的Topic::setTopicID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。