mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-83751 check: remove non-functional result class method.
This commit is contained in:
parent
a2653cc924
commit
2bb8b013e7
@ -14,18 +14,8 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* A check result class
|
||||
*
|
||||
* @package core
|
||||
* @category check
|
||||
* @copyright 2020 Brendan Heywood <brendan@catalyst-au.net>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core\check;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* A check object returns a result object
|
||||
*
|
||||
@ -33,6 +23,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* 'details' which is computationally expensive then extend this and overide
|
||||
* the get_details() method so that it is only called when it will be needed.
|
||||
*
|
||||
* @package core
|
||||
* @category check
|
||||
* @copyright 2020 Brendan Heywood <brendan@catalyst-au.net>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
@ -109,20 +101,6 @@ class result implements \renderable {
|
||||
*/
|
||||
protected $details = '';
|
||||
|
||||
/**
|
||||
* Get the check reference label
|
||||
*
|
||||
* @return string must be globally unique
|
||||
*/
|
||||
public function get_ref(): string {
|
||||
$ref = $this->get_component();
|
||||
if (!empty($ref)) {
|
||||
$ref .= '_';
|
||||
}
|
||||
$ref .= $this->get_id();
|
||||
return $ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user