mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-74465 blocks: improve phpdocs
This commit is contained in:
parent
f7a8df253b
commit
854dd65966
3 changed files with 10 additions and 9 deletions
|
@ -289,7 +289,7 @@ class block_edit_form extends moodleform {
|
|||
|
||||
/**
|
||||
* Override this to create any form fields specific to this type of block.
|
||||
* @param object $mform the form being built.
|
||||
* @param \MoodleQuickForm $mform the form being built.
|
||||
*/
|
||||
protected function specific_definition($mform) {
|
||||
// By default, do nothing.
|
||||
|
|
|
@ -71,13 +71,13 @@ class block_base {
|
|||
|
||||
/**
|
||||
* An object to contain the information to be displayed in the block.
|
||||
* @var stdObject $content
|
||||
* @var stdClass $content
|
||||
*/
|
||||
var $content = NULL;
|
||||
|
||||
/**
|
||||
* The initialized instance of this block object.
|
||||
* @var block $instance
|
||||
* @var stdClass $instance
|
||||
*/
|
||||
var $instance = NULL;
|
||||
|
||||
|
@ -89,13 +89,13 @@ class block_base {
|
|||
|
||||
/**
|
||||
* This blocks's context.
|
||||
* @var stdClass
|
||||
* @var context
|
||||
*/
|
||||
public $context = NULL;
|
||||
|
||||
/**
|
||||
* An object containing the instance configuration information for the current instance of this block.
|
||||
* @var stdObject $config
|
||||
* @var stdClass $config
|
||||
*/
|
||||
var $config = NULL;
|
||||
|
||||
|
@ -462,7 +462,7 @@ class block_base {
|
|||
* table and the current page. (See {@link block_manager::load_blocks()}.)
|
||||
*
|
||||
* @param stdClass $instance data from block_insances, block_positions, etc.
|
||||
* @param moodle_page $the page this block is on.
|
||||
* @param moodle_page $page the page this block is on.
|
||||
*/
|
||||
function _load_instance($instance, $page) {
|
||||
if (!empty($instance->configdata)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue