Permalink
Browse files

Initial cleaning

  • Loading branch information...
jleyva committed Jan 16, 2012
1 parent a40a58b commit 6ebc56d0e40fa223fa617db57596088e7ffbdb0b
Showing with 2,014 additions and 2,054 deletions.
  1. +41 −40 components/ordering/categoryfieldorder/plugin.class.php
  2. +13 −12 components/ordering/component.class.php
  3. +18 −17 components/ordering/coursefieldorder/form.php
  4. +41 −40 components/ordering/coursefieldorder/plugin.class.php
  5. +18 −17 components/ordering/userfieldorder/form.php
  6. +41 −40 components/ordering/userfieldorder/plugin.class.php
  7. +26 −25 components/permissions/anyone/plugin.class.php
  8. +83 −82 components/permissions/component.class.php
  9. +36 −35 components/permissions/form.php
  10. +48 −47 components/permissions/puserfield/form.php
  11. +47 −46 components/permissions/puserfield/plugin.class.php
  12. +26 −25 components/permissions/reportscapabilities/plugin.class.php
  13. +15 −14 components/permissions/roleincourse/form.php
  14. +37 −36 components/permissions/roleincourse/plugin.class.php
  15. +26 −25 components/permissions/usersincoursereport/plugin.class.php
  16. +13 −12 components/plot/component.class.php
  17. +65 −65 components/plot/line/form.php
  18. +132 −131 components/plot/line/graph.php
  19. +63 −62 components/plot/line/plugin.class.php
  20. +42 −42 components/plot/pie/form.php
  21. +95 −94 components/plot/pie/graph.php
  22. +64 −63 components/plot/pie/plugin.class.php
  23. +38 −37 components/template/component.class.php
  24. +80 −79 components/template/form.php
  25. +33 −32 components/timeline/component.class.php
  26. +42 −41 components/timeline/form.php
  27. +6 −6 db/access.php
  28. +3 −3 db/install.xml
  29. +180 −181 editcomp.php
  30. +233 −232 editplugin.php
  31. +223 −222 editreport.php
  32. +44 −43 editreport_form.php
  33. +65 −64 export.php
  34. +13 −12 export/ods/export.php
  35. +13 −12 export/xls/export.php
  36. +5 −5 filter_form.php
  37. +22 −21 import_form.php
  38. +2 −2 js/configurable_reports.js
  39. +21 −21 js/jquery-latest.js
  40. +1 −1 js/jquery.tablesorter.min.js
  41. +0 −3 lang/en/help/configurable_reports/comp_calcs.html
  42. +0 −1 lang/en/help/configurable_reports/comp_calculations.html
  43. +0 −3 lang/en/help/configurable_reports/comp_columns.html
  44. +0 −5 lang/en/help/configurable_reports/comp_conditions.html
  45. +0 −10 lang/en/help/configurable_reports/comp_customsql.html
  46. +0 −7 lang/en/help/configurable_reports/comp_filters.html
  47. +0 −3 lang/en/help/configurable_reports/comp_ordering.html
  48. +0 −5 lang/en/help/configurable_reports/comp_permissions.html
  49. +0 −3 lang/en/help/configurable_reports/comp_plot.html
  50. +0 −5 lang/en/help/configurable_reports/comp_template.html
  51. +0 −3 lang/en/help/configurable_reports/conditionexpr_conditions.html
  52. +0 −3 lang/en/help/configurable_reports/conditionexpr_permissions.html
  53. +0 −1 lang/en/help/configurable_reports/jsordering.html
  54. +0 −1 lang/en/help/configurable_reports/pagination.html
  55. +0 −3 lang/en/help/configurable_reports/reporttable.html
  56. +0 −11 lang/en/help/configurable_reports/template_marks.html
  57. +0 −3 lang/en/help/configurable_reports/typeofreport.html
@@ -16,49 +16,50 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** Configurable Reports
- * A Moodle block for creating customizable reports
- * @package blocks
- * @author: Juan leyva <http://www.twitter.com/jleyvadelgado>
- * @date: 2009
- */
+ * A report plugin for creating customizable reports
+ * @package report
+ * @subpackage configreports
+ * @copyright Juan leyva <http://www.twitter.com/jleyvadelgado>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
-require_once($CFG->dirroot.'/blocks/configurable_reports/plugin.class.php');
+require_once($CFG->dirroot.'/report/configreports/plugin.class.php');
class plugin_categoryfieldorder extends plugin_base{
-
- var $sql = true;
-
- function init(){
- $this->fullname = get_string('categoryfield','block_configurable_reports');
- $this->form = true;
- $this->unique = true;
- $this->reporttypes = array('categories');
- $this->sql = true;
- }
-
- function summary($data){
- return $data->column.' '.(strtoupper($data->direction));
- }
-
- // data -> Plugin configuration data
- function execute($data){
- global $DB, $CFG;
-
- if($data->direction == 'asc' || $data->direction == 'desc'){
- $direction = strtoupper($data->direction);
- $columns = $DB->get_columns('course_categories');
-
- $categorycolumns = array();
- foreach($columns as $c)
- $categorycolumns[$c->name] = $c->name;
-
- if(isset($categorycolumns[$data->column])){
- return $data->column.' '.$direction;
- }
- }
-
- return '';
- }
+
+ var $sql = true;
+
+ function init() {
+ $this->fullname = get_string('categoryfield','report_configreports');
+ $this->form = true;
+ $this->unique = true;
+ $this->reporttypes = array('categories');
+ $this->sql = true;
+ }
+
+ function summary($data) {
+ return $data->column.' '.(strtoupper($data->direction));
+ }
+
+ // data -> Plugin configuration data
+ function execute($data) {
+ global $DB, $CFG;
+
+ if ($data->direction == 'asc' || $data->direction == 'desc') {
+ $direction = strtoupper($data->direction);
+ $columns = $DB->get_columns('course_categories');
+
+ $categorycolumns = array();
+ foreach ($columns as $c)
+ $categorycolumns[$c->name] = $c->name;
+
+ if (isset($categorycolumns[$data->column])) {
+ return $data->column.' '.$direction;
+ }
+ }
+
+ return '';
+ }
}
?>
@@ -16,20 +16,21 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** Configurable Reports
- * A Moodle block for creating customizable reports
- * @package blocks
- * @author: Juan leyva <http://www.twitter.com/jleyvadelgado>
- * @date: 2009
- */
+ * A report plugin for creating customizable reports
+ * @package report
+ * @subpackage configreports
+ * @copyright Juan leyva <http://www.twitter.com/jleyvadelgado>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
class component_ordering extends component_base{
-
- function init(){
- $this->plugins = true;
- $this->ordering = false;
- $this->form = false;
- $this->help = true;
- }
+
+ function init() {
+ $this->plugins = true;
+ $this->ordering = false;
+ $this->form = false;
+ $this->help = true;
+ }
}
?>
@@ -16,11 +16,12 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** Configurable Reports
- * A Moodle block for creating customizable reports
- * @package blocks
- * @author: Juan leyva <http://www.twitter.com/jleyvadelgado>
- * @date: 2009
- */
+ * A report plugin for creating customizable reports
+ * @package report
+ * @subpackage configreports
+ * @copyright Juan leyva <http://www.twitter.com/jleyvadelgado>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
@@ -33,18 +34,18 @@ function definition() {
global $DB, $USER, $CFG;
$mform =& $this->_form;
-
- $columns = $DB->get_columns('course');
-
- $coursecolumns = array();
- foreach($columns as $c)
- $coursecolumns[$c->name] = $c->name;
-
- $mform->addElement('select', 'column', get_string('column','block_configurable_reports'), $coursecolumns);
-
- $directions = array('asc'=>'ASC', 'desc'=>'DESC');
- $mform->addElement('select', 'direction', get_string('direction','block_configurable_reports'), $directions);
-
+
+ $columns = $DB->get_columns('course');
+
+ $coursecolumns = array();
+ foreach ($columns as $c)
+ $coursecolumns[$c->name] = $c->name;
+
+ $mform->addElement('select', 'column', get_string('column','report_configreports'), $coursecolumns);
+
+ $directions = array('asc'=>'ASC', 'desc'=>'DESC');
+ $mform->addElement('select', 'direction', get_string('direction','report_configreports'), $directions);
+
// buttons
$this->add_action_buttons(true, get_string('add'));
@@ -16,49 +16,50 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** Configurable Reports
- * A Moodle block for creating customizable reports
- * @package blocks
- * @author: Juan leyva <http://www.twitter.com/jleyvadelgado>
- * @date: 2009
- */
+ * A report plugin for creating customizable reports
+ * @package report
+ * @subpackage configreports
+ * @copyright Juan leyva <http://www.twitter.com/jleyvadelgado>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
-require_once($CFG->dirroot.'/blocks/configurable_reports/plugin.class.php');
+require_once($CFG->dirroot.'/report/configreports/plugin.class.php');
class plugin_coursefieldorder extends plugin_base{
-
- var $sql = true;
-
- function init(){
- $this->fullname = get_string('coursefield','block_configurable_reports');
- $this->form = true;
- $this->unique = true;
- $this->reporttypes = array('courses');
- $this->sql = true;
- }
-
- function summary($data){
- return get_string($data->column).' '.(strtoupper($data->direction));
- }
-
- // data -> Plugin configuration data
- function execute($data){
- global $DB, $CFG;
-
- if($data->direction == 'asc' || $data->direction == 'desc'){
- $direction = strtoupper($data->direction);
- $columns = $DB->get_columns('course');
-
- $coursecolumns = array();
- foreach($columns as $c)
- $coursecolumns[$c->name] = $c->name;
-
- if(isset($coursecolumns[$data->column])){
- return $data->column.' '.$direction;
- }
- }
-
- return '';
- }
+
+ var $sql = true;
+
+ function init() {
+ $this->fullname = get_string('coursefield','report_configreports');
+ $this->form = true;
+ $this->unique = true;
+ $this->reporttypes = array('courses');
+ $this->sql = true;
+ }
+
+ function summary($data) {
+ return get_string($data->column).' '.(strtoupper($data->direction));
+ }
+
+ // data -> Plugin configuration data
+ function execute($data) {
+ global $DB, $CFG;
+
+ if ($data->direction == 'asc' || $data->direction == 'desc') {
+ $direction = strtoupper($data->direction);
+ $columns = $DB->get_columns('course');
+
+ $coursecolumns = array();
+ foreach ($columns as $c)
+ $coursecolumns[$c->name] = $c->name;
+
+ if (isset($coursecolumns[$data->column])) {
+ return $data->column.' '.$direction;
+ }
+ }
+
+ return '';
+ }
}
?>
@@ -16,11 +16,12 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/** Configurable Reports
- * A Moodle block for creating customizable reports
- * @package blocks
- * @author: Juan leyva <http://www.twitter.com/jleyvadelgado>
- * @date: 2009
- */
+ * A report plugin for creating customizable reports
+ * @package report
+ * @subpackage configreports
+ * @copyright Juan leyva <http://www.twitter.com/jleyvadelgado>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
@@ -33,18 +34,18 @@ function definition() {
global $DB, $USER, $CFG;
$mform =& $this->_form;
-
- $columns = $DB->get_columns('user');
-
- $coursecolumns = array();
- foreach($columns as $c)
- $coursecolumns[$c->name] = $c->name;
-
- $mform->addElement('select', 'column', get_string('column', 'block_configurable_reports'), $coursecolumns);
-
- $directions = array('asc'=>'ASC', 'desc'=>'DESC');
- $mform->addElement('select', 'direction', get_string('direction','block_configurable_reports'), $directions);
-
+
+ $columns = $DB->get_columns('user');
+
+ $coursecolumns = array();
+ foreach ($columns as $c)
+ $coursecolumns[$c->name] = $c->name;
+
+ $mform->addElement('select', 'column', get_string('column', 'report_configreports'), $coursecolumns);
+
+ $directions = array('asc'=>'ASC', 'desc'=>'DESC');
+ $mform->addElement('select', 'direction', get_string('direction','report_configreports'), $directions);
+
// buttons
$this->add_action_buttons(true, get_string('add'));
Oops, something went wrong.

0 comments on commit 6ebc56d

Please sign in to comment.