Parcourir la source

Backup and restore test cateogries - add file CourseCopyTestCategory.php

Hubert Borderiou il y a 11 ans
Parent
commit
ebc232497f
1 fichiers modifiés avec 48 ajouts et 0 suppressions
  1. 48 0
      main/coursecopy/classes/CourseCopyTestCategory.php

+ 48 - 0
main/coursecopy/classes/CourseCopyTestCategory.php

@@ -0,0 +1,48 @@
+<?php
+
+/* For licensing terms, see /license.txt */
+/**
+ * Exercises questions backup script
+ * @package chamilo.backup
+ */
+/**
+ * Code
+ */
+require_once 'Resource.class.php';
+
+/**
+ * An QuizQuestion
+ * @author Hubert Borderiou <hubert.borderiou@grenet.fr>
+ * @package chamilo.backup
+ */
+class CourseCopyTestcategory extends Resource
+{
+    /**
+     * The title
+     */
+    var $title;
+
+    /**
+     * The description
+     */
+    var $description;
+
+    /**
+     * Create a new TestCategory
+     * @param string $title
+     * @param string $description
+     */
+    function CourseCopyTestcategory($id, $title, $description) {
+        parent::Resource($id, RESOURCE_TEST_CATEGORY);
+        $this->title = $title;
+        $this->description = $description;
+    }
+
+    /**
+     * Show the test_category title, used in the partial recycle_course.php form
+     */
+    function show() {
+        parent::show();
+        echo $this->title;
+    }
+}