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
79d03ac
commit 4ac64a4
Showing
20 changed files
with
61 additions
and
36 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 |
---|---|---|
|
@@ -15,6 +15,17 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Configurable Reports a Moodle block for creating customizable reports | ||
* | ||
* @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 block_configurable_reports | ||
* | ||
* @package block_configurable_reports | ||
* @author Juan leyva <http://www.twitter.com/jleyvadelgado> | ||
*/ | ||
|
@@ -160,6 +171,8 @@ public function get_content() { | |
} | ||
|
||
/** | ||
* Cron | ||
* | ||
* @return bool | ||
*/ | ||
public function cron(): bool { | ||
|
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 |
---|---|---|
|
@@ -15,11 +15,12 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Github helper class | ||
* GitHub helper class | ||
* | ||
* @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 | ||
* @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 | ||
*/ | ||
|
||
namespace block_configurable_reports; | ||
|
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 |
---|---|---|
|
@@ -15,17 +15,19 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* @package block_configurablereports | ||
* @author Juan leyva <http://www.twitter.com/jleyvadelgado> | ||
* @date 2009 | ||
* Configurable Reports a Moodle block for creating customizable reports | ||
* | ||
* @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 component_base | ||
* | ||
* @package block_configurablereports | ||
* @package block_configurable_reports | ||
* @author Juan leyva <http://www.twitter.com/jleyvadelgado> | ||
* @date 2009 | ||
*/ | ||
abstract class component_base { | ||
|
||
|
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 |
---|---|---|
|
@@ -15,9 +15,12 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* @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 | ||
* Configurable Reports a Moodle block for creating customizable reports | ||
* | ||
* @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 | ||
*/ | ||
|
||
/** | ||
|
@@ -70,7 +73,7 @@ public function summary(object $data): string { | |
$reportclass = new $reportclassname($this->report); | ||
|
||
$components = cr_unserialize($this->report->components); | ||
$config = (isset($components['customsql']['config'])) ? $components['customsql']['config'] : new stdclass; | ||
$config = $components['customsql']['config'] ?? new stdclass; | ||
|
||
if (isset($config->querysql)) { | ||
|
||
|
@@ -96,6 +99,8 @@ public function summary(object $data): string { | |
} | ||
|
||
/** | ||
* Execute | ||
* | ||
* @param $rows | ||
* @return float | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -15,9 +15,12 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* @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 | ||
* Configurable Reports a Moodle block for creating customizable reports | ||
* | ||
* @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 | ||
*/ | ||
|
||
/** | ||
|
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,6 +20,7 @@ | |
* @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; | ||
|
@@ -31,7 +32,6 @@ | |
* | ||
* @package block_configurable_reports | ||
* @author David Pesce <[email protected]> | ||
* / | ||
*/ | ||
class percent_form extends moodleform { | ||
|
||
|
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
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