forked from jleyva/moodle-block_configurablereports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28e6f99
commit d5533c2
Showing
45 changed files
with
346 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,9 @@ | |
* @copyright 2020 Juan Leyva <[email protected]> | ||
* @package block_configurable_reports | ||
* @author David Pesce <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,22 @@ | |
* @copyright 2020 Juan Leyva <[email protected]> | ||
* @package block_configurable_reports | ||
* @author Juan leyva <http://www.twitter.com/jleyvadelgado> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
/** | ||
* Class plugin_roleusersn | ||
* | ||
* @package block_configurable_reports | ||
* @author Juan leyva <http://www.twitter.com/jleyvadelgado> | ||
*/ | ||
class plugin_roleusersn extends plugin_base { | ||
|
||
/** | ||
* Init | ||
* | ||
* @return void | ||
*/ | ||
public function init(): void { | ||
$this->fullname = get_string('roleusersn', 'block_configurable_reports'); | ||
$this->type = 'numeric'; | ||
|
@@ -40,11 +53,16 @@ public function summary(object $data): string { | |
return format_string($data->columname); | ||
} | ||
|
||
|
||
|
||
// Data -> Plugin configuration data. | ||
// Row -> Full course row c->id, c->fullname, etc... | ||
public function execute($data, $row, $user, $courseid, $starttime = 0, $endtime = 0) { | ||
/** | ||
* Execute | ||
* | ||
* @param object $data | ||
* @param object $row | ||
* @return int | ||
*/ | ||
public function execute($data, $row) { | ||
// Data -> Plugin configuration data. | ||
// Row -> Full course row c->id, c->fullname, etc... | ||
$courseid = $row->id; | ||
$context = cr_get_context(CONTEXT_COURSE, $courseid); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.