(no commit message)
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 8 Dec 2005 16:14:11 +0000 (16:14 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 8 Dec 2005 16:14:11 +0000 (16:14 -0000)
docs/tools/content/module.php [deleted file]
docs/tools/content/module.xml [deleted file]
docs/tools/content/module_backup.php [deleted file]
docs/tools/content/module_delete.php [deleted file]

diff --git a/docs/tools/content/module.php b/docs/tools/content/module.php
deleted file mode 100644 (file)
index 16c3a9e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
-\r
-define('AT_PRIV_CONTENT', $this->getPrivilege());\r
-\r
-//side menu dropdowns\r
-$this->_stacks['menu_menu'] = array('title_var'=>'menu_menu', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/menu_menu.inc.php');\r
-$this->_stacks['related_topics'] = array('title_var'=>'related_topics', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/related_topics.inc.php');\r
-$this->_stacks['search'] = array('title_var'=>'search', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/search.inc.php');\r
-\r
-\r
-$this->_pages['search.php']['title_var']      = 'search';\r
-\r
-$this->_pages['tools/content/index.php']['title_var'] = 'content';\r
-$this->_pages['tools/content/index.php']['parent']    = 'tools/index.php';\r
-$this->_pages['tools/content/index.php']['guide']     = 'instructor/?p=4.0.content.php';\r
-$this->_pages['tools/content/index.php']['children']  = array('editor/add_content.php', 'tools/ims/index.php');\r
-\r
-       $this->_pages['editor/add_content.php']['title_var']    = 'add_content';\r
-       $this->_pages['editor/add_content.php']['parent']   = 'tools/content/index.php';\r
-       $this->_pages['editor/add_content.php']['guide']     = 'instructor/?p=4.1.creating_editing_content.php';\r
-\r
-       $this->_pages['editor/edit_content.php']['title_var'] = 'edit_content';\r
-       $this->_pages['editor/edit_content.php']['parent']    = 'tools/content/index.php';\r
-       $this->_pages['editor/edit_content.php']['guide']     = 'instructor/?p=4.1.creating_editing_content.php';\r
-\r
-       $this->_pages['editor/delete_content.php']['title_var'] = 'delete_content';\r
-       $this->_pages['editor/delete_content.php']['parent']    = 'tools/content/index.php';\r
-\r
-?>
\ No newline at end of file
diff --git a/docs/tools/content/module.xml b/docs/tools/content/module.xml
deleted file mode 100644 (file)
index 750bcc5..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?> \r
-<module version="0.1"> \r
-    <name lang="en">Content Pages</name> \r
-    <description lang="en">Displays the course material via content pages, created and editable by the instructor.  Instructors and students are also able to export specific content pages. Statistics of which content pages students have viewed are also avaiable in "My Tracker".</description> \r
-    <maintainers>\r
-        <maintainer> \r
-            <name>ATutor Team</name> \r
-            <email>info@atutor.ca</email> \r
-        </maintainer>\r
-    </maintainers> \r
-    <url>http://atutor.ca</url> \r
-    <license>GPL</license> \r
-       <release> \r
-        <version>0.1</version> \r
-               <privileges>\r
-                       <instructor_privilege>create</instructor_privilege>\r
-                       <admin_privilege></admin_privilege> \r
-               </privileges>\r
-        <date>2005-08-25</date> \r
-        <state>stable</state> \r
-        <notes>This is a core module.</notes> \r
-    </release> \r
-</module>
\ No newline at end of file
diff --git a/docs/tools/content/module_backup.php b/docs/tools/content/module_backup.php
deleted file mode 100644 (file)
index 8d021c0..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php\r
-\r
-$sql = array();\r
-\r
-$sql['content'] = 'SELECT content_id, content_parent_id, ordering, last_modified, revision, formatting, release_date, keywords, content_path, title, text FROM '.TABLE_PREFIX.'content WHERE course_id=? ORDER BY content_parent_id, ordering';\r
-\r
-$sql['related_content'] = 'SELECT R.content_id, R.related_content_id FROM '.TABLE_PREFIX.'related_content R, '.TABLE_PREFIX.'content C WHERE C.course_id=? AND R.content_id=C.content_id ORDER BY R.content_id ASC';\r
-\r
-function related_content_convert($row, $course_id, $table_id_map, $version) {\r
-       $new_row = array();\r
-       $new_row[0] = $table_id_map['content'][$row[0]];\r
-       $new_row[1] = $table_id_map['content'][$row[1]];\r
-\r
-       return $new_row;\r
-}\r
-\r
-function content_convert($row, $course_id, $table_id_map, $version) {\r
-       static $order;\r
-\r
-       if (!isset($order)) {\r
-               global $db;\r
-               $sql     = 'SELECT MAX(ordering) AS ordering FROM '.TABLE_PREFIX.'content WHERE content_parent_id=0 AND course_id='.$course_id;\r
-               $result  = mysql_query($sql, $db);\r
-               $tmp_row = mysql_fetch_assoc($result);\r
-               $order   = $tmp_row['ordering'] + 1;\r
-       }\r
-\r
-       $new_row = array();\r
-       $new_row[0] = $row[0];\r
-       $new_row[1] = $course_id;\r
-       if ($row[1] == 0) {\r
-               $new_row[2] = 0;\r
-               $new_row[3] = $order;\r
-               $order++;\r
-       } else {\r
-               $new_row[2] = $table_id_map['content'][$row[1]];\r
-               $new_row[3] = $row[2];\r
-       }\r
-\r
-       $new_row[4] = $row[3];\r
-       $new_row[5] = $row[4];\r
-       $new_row[6] = $row[5];\r
-       $new_row[7] = $row[6];\r
-       $new_row[8] = $row[7];\r
-       $new_row[9] = $row[8];\r
-       $new_row[10] = $row[9];\r
-       $new_row[11] = $row[10];\r
-       $new_row[12] = 0;\r
-\r
-       return $new_row;\r
-}\r
-\r
-\r
-?>
\ No newline at end of file
diff --git a/docs/tools/content/module_delete.php b/docs/tools/content/module_delete.php
deleted file mode 100644 (file)
index 9c5aa8c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php\r
-\r
-function content_pages_delete($course) {\r
-       global $db;\r
-\r
-       // related_content + content:\r
-       $sql    = "SELECT content_id FROM ".TABLE_PREFIX."content WHERE course_id=$course";\r
-       $result = mysql_query($sql, $db);\r
-       while ($row = mysql_fetch_array($result)) {\r
-               $sql    = "DELETE FROM ".TABLE_PREFIX."related_content WHERE content_id=$row[0]";\r
-               $result2 = mysql_query($sql, $db);\r
-\r
-               $sql3    = "DELETE FROM ".TABLE_PREFIX."member_track WHERE content_id=$row[0]";\r
-               $result3 = mysql_query($sql3, $db);\r
-       }\r
-\r
-       $sql = "DELETE FROM ".TABLE_PREFIX."content WHERE course_id=$course";\r
-       $result = mysql_query($sql,$db);\r
-\r
-       $sql = "OPTIMIZE TABLE ".TABLE_PREFIX."content";\r
-       $result = @mysql_query($sql, $db);\r
-\r
-}\r
-\r
-?>
\ No newline at end of file