Переглянути джерело

iassign_block unknown version

Lucas de Souza 5 роки тому
коміт
eb3cae26d9

+ 69 - 0
README

@@ -0,0 +1,69 @@
+iAssign version 2.1.70
+------------------------
+
+By iMatica/iMath - free interactive tools for teaching-learning Math
+   Patricia Rodrigues <patricnet@ig.com.br>, Leônidas O. Brandão <leo@ime.usp.br>
+
+
+.: About iAssign :.
+
+This is the iAssign (Interactive Assignment) package, an iMath free system to enrich activities in Moodle. 
+It is created by Patricia Rodrigues and Leônidas de Oliveira Brandão.
+
+iAssign's goal is to increase interactivity in activities related to specific subjects (such as Geometry, Functions, Programming,...)
+in a flexible way. 
+
+In order to improve interactivity, iAssign makes use of iLM (interactive Learning Module),
+that is any interactive tool that runs under a Web browser.
+Typically an iLM is a Java applet with a few (mandatory) communication methods, all based on HTTP protocol.
+This implies that any applet can easily became an iLM and can be integrated to Moodle under iAssign package. 
+
+If the iLM offers automatic assessment functionality, iAssign is able
+to deal with it. Under such iLM, iAssign provides immediate feedback to
+the student, and the teachers can get instant information about their
+activities (including reports about the student performance).
+
+It can be added new iLM into iAssign, at any time, but (for security
+reason), only the administrator has the privilege of integrating new iLM into iAssign.
+Once integrated, an iLM can be used by anyone registered in its Moodle.
+For instance, an user with privileges of "teacher" is allowed to use
+the iAssign authoring tools to create activities with any iLM
+(like iGeom, iGraf, or iVprog, respectively to related to the subjects, Geometry, Functions and Programming).
+
+The main features of iAssign package are:
+ - The authoring tool to allow any teacher to easily prepare activities to students. Activities can be:
+   + an exercise (the student must send an answer, and if the iLM has automatic assessment, its results (right/wrong) is also registered);
+   + a test (the student does the activity, if iLM has automatic assessment, the student gets immediate feedback, but no data is recorded in Moodle's database);
+   + an example (the student can interact with the example, but nothing is recorded).
+ - Reports about students activities: 
+   + teachers can see, e.g., a survey or statistics about student's answers and can have quick access to any submited answer;
+   + the students have a survey of their activities (including their grades)
+ - Integration with general Moodle grades
+ - A filter that allows the insertion of iLM content into any (asynchronous) Moodle text.
+
+Besides, as the majority of Moodle modules, iAssign can export (as backup) one activity or a complete lesson (a set of activities).
+
+Note: This plugin is part of iAssign SET see more in https://moodle.org/plugins/browse.php?list=set&id=54
+
+.: Quick install instructions (to be used by the system administrator) :.
+
+0) Be sure you have (at least) Moodle 2.4 until Moodle 2.6 installed
+1) Be sure to have the latest language package, such as English (en), Portuguese (pt_br).
+2) Be sure to have the latest version of the module iAssign (see in https://github.com/leonidasbrandao/iAssign master)
+3) Unpack 'iAssign.2.1.x.zip' (or 'iAssign.2.1.x.tgz')
+4) Copy the 'iassign' block directory into the "blocks" subdirectory of Moodle installation
+5) Under role "administrator", go to the 'Site administration' and click on 'Notifications'
+6) Have fun.
+
+See more documentation in http://docs.moodle.org/en/Manager_Interactive_Activities_of_iAssign
+
+Comments and suggestions are always welcome at http://www.matematica.br/iassign or https://github.com/leonidasbrandao/iAssign.
+(if the comment area is missing, please send us an email).
+
+
+Best regards,
+
+Leônidas <leo@ime.usp.br> and Patricia <patricnet@ig.com.br>
+
+Institute of Mathematics and Statistics - University of São Paulo
+iMath/LInE : http://www.matematica.br : http://line.ime.usp.br

+ 104 - 0
block_iassign_block.php

@@ -0,0 +1,104 @@
+<?php
+/**
+ * Block iLM manager
+ * 
+ * Release Notes:
+ * - v 1.1 2013/11/01
+ * 		+ Fix bug in access when the iassign module not install.
+ * 
+ * @author Patricia Alves Rodrigues
+ * @author Leônidas O. Brandão
+ * @author Luciano Oliveira Borges
+ * @version v 1.1 2013/11/01
+ * @package iassign_block
+ * @since 2012/01/10
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ * @see block_base
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+class block_iassign_block extends block_base {
+	
+	/**
+	 * Initialize funcion of class.
+	 */
+	function init() {
+		$this->title = get_string('blocktitle', 'block_iassign_block');
+		$this->blockname = get_string('pluginname', 'block_iassign_block');
+	}
+
+	/**
+	 * Overwrite specialization function (Inheritance).
+	 */
+	function specialization() {
+
+	}
+
+	/**
+	 * Function for allow applicable formats.
+	 * @return array Return an array with the formats.
+	 */
+	function applicable_formats() {
+		return array('all' => true);
+	}
+
+	/**
+	 * Function for allow multiple instances.
+	 * @return boolean Return false for multple instances.
+	 */
+	function instance_allow_multiple() {
+		return false;
+	}
+
+	/**
+	 * Function for return the content the block in page.
+	 * @return stdClass|NULL Return content or null.
+	 */
+	function get_content() {
+		global $USER, $CFG, $COURSE, $PAGE, $OUTPUT;
+		
+		if ($this->content !== NULL) {
+			return $this->content;
+		}
+		if (empty($this->instance)) {
+			return null;
+		}
+
+		if (isloggedin() && !isguestuser()) {   // Show the block
+			$this->content = new stdClass();
+			if ($PAGE->pagelayout != 'frontpage') {
+				if (has_capability('mod/iassign:editiassign', $this->context)) {//
+					
+					$code_javascript = "
+					<script type='text/javascript'>
+						//<![CDATA[
+						function alert_iassign() {
+							alert('".get_string('alert_iassign', 'block_iassign_block')."');
+						}
+						//]]>
+					</script>";
+ 					$this->content->text = $code_javascript;
+					
+					if(!file_exists($CFG->dirroot . '/mod/iassign/version.php')) {
+						$options = array('id' => $COURSE->id);
+						$url = "#";
+						$confirmaction = new component_action('click', 'alert_iassign', array());
+					} else {
+						$options = array('id' => $COURSE->id, 'from' => 'block', 'returnurl' => $PAGE->url->out());
+						$url = "$CFG->wwwroot/mod/iassign/ilm_manager.php";
+						$confirmaction = '';
+					}
+					$button = new single_button(new moodle_url($url, $options), get_string('new_edit', 'block_iassign_block'), 'GET');
+					if(!empty($confirmaction))
+						$button->add_action($confirmaction);
+					
+					$this->content->text .= '<CENTER>'.$OUTPUT->render($button).'</CENTER>';
+				} 
+				return $this->content;
+			}
+		}
+	}
+
+}

+ 36 - 0
db/access.php

@@ -0,0 +1,36 @@
+<?php
+/**
+ * This is access capabilities file
+ * 
+ * @author Patricia Alves Rodrigues
+ * @author Leônidas O. Brandão
+ * @version v 1.0 2012/01/10
+ * @package iassign_block_db
+ * @since 2012/01/10
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+$capabilities = array(
+    'block/iassign_block:editingteacher' => array(
+        'riskbitmask' => RISK_XSS,
+        'captype' => 'write',
+        'contextlevel' => CONTEXT_MODULE,
+        'legacy' => array(
+            'teacher' => CAP_ALLOW,
+            'editingteacher' => CAP_ALLOW,
+            'coursecreator' => CAP_ALLOW,
+            'manager' => CAP_ALLOW
+    ))
+    ,
+    'block/iassign_block:addinstance' => array(
+        'riskbitmask' => RISK_XSS,
+        'captype' => 'write',
+        'contextlevel' => CONTEXT_MODULE,
+        'legacy' => array(
+            'teacher' => CAP_ALLOW,
+            'editingteacher' => CAP_ALLOW,
+            'coursecreator' => CAP_ALLOW,
+            'manager' => CAP_ALLOW
+        )
+    )
+);

+ 9 - 0
db/index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>

+ 9 - 0
index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>

+ 19 - 0
lang/en/block_iassign_block.php

@@ -0,0 +1,19 @@
+<?php
+/** 
+ * This is english language file
+ * 
+ * @author Patricia Alves Rodrigues 
+ * @author Leônidas O. Brandão
+ * @author Luciano Oliveira Borges
+ * @version v 1.3 2013/08/29
+ * @package iassign_block_lang
+ * @since 2012/01/10
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+ 
+$string['block_iassign_block'] = 'Manager Interactive Activities of iAssign';
+$string['pluginname'] = 'Manager Interactive Activities of iAssign';
+$string['blocktitle'] = 'iAssign Repository';
+$string['new_edit'] ='New/Edit';
+$string['alert_iassign'] ='ERROR: iAssign module is not installed, the block can not work without the module!';

+ 9 - 0
lang/en/index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>

+ 9 - 0
lang/index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>

+ 18 - 0
lang/pt_br/block_iassign_block.php

@@ -0,0 +1,18 @@
+<?php
+/**
+ * This is portuguese language file
+ * @author Patricia Alves Rodrigues
+ * @author Leônidas O. Brandão
+ * @author Luciano O. Borges
+ * @version v 1.3 2013/08/29
+ * @package iassign_block_lang
+ * @since 2012/01/10
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+ 
+$string['block_iassign_block'] = 'Gerenciador de Atividades Interativas do iTarefa';
+$string['pluginname'] = 'Gerenciador de Atividades Interativas do iTarefa';
+$string['blocktitle'] = 'Repositório iTarefa';
+$string['new_edit'] ='Criar/Editar';
+$string['alert_iassign'] ='ERRO: o módulo do iTarefa não está instalado, o bloco não pode funcionar sem o módulo!';

+ 9 - 0
lang/pt_br/index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>


+ 9 - 0
pix/index.html

@@ -0,0 +1,9 @@
+<html>
+	<head>
+		<title>Acess not allowed! - Acesso não permitido</title>
+	</head>
+	<body style="color: #FF0000">
+		<p>Acesso não permitido!</p>
+		<p>Acess not allowed!</p>
+	</body>
+</html>

+ 68 - 0
version.php

@@ -0,0 +1,68 @@
+<?php
+/**
+ * @mainpage
+ * This is the iAssign (Interactive Assignment) package, an iMath free system to enrich activities in Moodle.
+ * It is created by Patricia Rodrigues and Leônidas de Oliveira Brandão.
+ *
+ * iAssign's goal is to increase interactivity in activities related to specific subjects (such as Geometry, Functions, Programming,...)
+ * in a flexible way.
+ *
+ * In order to improve interactivity, iAssign makes use of iLM (interactive Learning Module),
+ * that is any interactive tool that runs under a Web browser.
+ * Typically an iLM is a Java applet with a few (mandatory) communication methods, all based on HTTP protocol.
+ * This implies that any applet can easily became an iLM and can be integrated to Moodle under iAssign package.
+ *
+ * If the iLM offers automatic assessment functionality, iAssign is able
+ * to deal with it. Under such iLM, iAssign provides immediate feedback to
+ * the student, and the teachers can get instant information about their
+ * activities (including reports about the student performance).
+ *
+ * It can be added new iLM into iAssign, at any time, but (for security
+ * reason), only the administrator has the privilege of integrating new iLM into iAssign.
+ * Once integrated, an iLM can be used by anyone registered in its Moodle.
+ * For instance, an user with privileges of "teacher" is allowed to use
+ * the iAssign authoring tools to create activities with any iLM
+ * (like iGeom, iGraf, or iVprog, respectively to related to the subjects, Geometry, Functions and Programming).
+ *
+ * The main features of iAssign package are:
+ * - The authoring tool to allow any teacher to easily prepare activities to students. Activities can be:
+ *    + an exercise (the student must send an answer, and if the iLM has automatic assessment, its results (right/wrong) is also registered);
+ *    + a test (the student does the activity, if iLM has automatic assessment, the student gets immediate feedback, but no data is recorded in Moodle's database);
+ *    + an example (the student can interact with the example, but nothing is recorded).
+ *  - Reports about students activities:
+ *    + teachers can see, e.g., a survey or statistics about student's answers and can have quick access to any submited answer;
+ *    + the students have a survey of their activities (including their grades)
+ *  - Integration with general Moodle grades
+ *  - A filter that allows the insertion of iLM content into any (asynchronous) Moodle text.
+ *
+ * @author Patricia Alves Rodrigues <<patricnet@ig.com.br>>
+ * @author Leônidas O. Brandão  <<leo@ime.usp.br>>
+ *
+ * @version v 2.1.16 2013/11/01
+ * @since 2010/09/27
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ *
+ * <b>License</b>
+ *  - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ *
+ *  <br><br><a href="../index.html"><b>Return to iAssign Documentation</b></a>
+ */
+/**
+ * Version File
+ * 
+ * @author Patricia Alves Rodrigues
+ * @author Leônidas O. Brandão
+ * @author Luciano Oliveira Borges
+ * @version v 1.2 2013/08/27
+ * @package iassign_block_version
+ * @since 2012/10/10
+ * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$plugin->component = 'block_iassign_block'; // Full name of the plugin (used for diagnostics)
+$plugin->release = '2.1.87 (Build: 2014070100)';	// Human-readable version name
+$plugin->version = 2014070100;    // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2012112900;    // Requires this Moodle version
+$plugin->maturity = MATURITY_STABLE;	// How stable the plugin is: MATURITY_ALPHA, MATURITY_BETA, MATURITY_RC, MATURITY_STABLE (Moodle 2.0 and above)
+$plugin->dependencies = array('mod_iassign' => 2014012100);