Línea 1434... |
Línea 1434... |
1434 |
* @param string $function The JS function to call
|
1434 |
* @param string $function The JS function to call
|
1435 |
* @param array $arguments An array of arguments to pass to the function
|
1435 |
* @param array $arguments An array of arguments to pass to the function
|
1436 |
* @param string $galleryversion Deprecated: The gallery version to use
|
1436 |
* @param string $galleryversion Deprecated: The gallery version to use
|
1437 |
* @param bool $ondomready If true the call is postponed until the DOM is finished loading
|
1437 |
* @param bool $ondomready If true the call is postponed until the DOM is finished loading
|
1438 |
*/
|
1438 |
*/
|
1439 |
public function require_yui_module($modules, $function, array $arguments = null, $galleryversion = null, $ondomready = false) {
|
1439 |
public function require_yui_module($modules, $function, ?array $arguments = null, $galleryversion = null, $ondomready = false) {
|
1440 |
if ($galleryversion != null) {
|
1440 |
if ($galleryversion != null) {
|
1441 |
debugging('The galleryversion parameter to yui_module has been deprecated since Moodle 2.3.', DEBUG_DEVELOPER);
|
1441 |
debugging('The galleryversion parameter to yui_module has been deprecated since Moodle 2.3.', DEBUG_DEVELOPER);
|
1442 |
}
|
1442 |
}
|
Línea 1443... |
Línea 1443... |
1443 |
|
1443 |
|
Línea 1455... |
Línea 1455... |
1455 |
* @param string $function The function to call
|
1455 |
* @param string $function The function to call
|
1456 |
* @param array $extraarguments An array of arguments to pass to the function
|
1456 |
* @param array $extraarguments An array of arguments to pass to the function
|
1457 |
* @param bool $ondomready If true the call is postponed until the DOM is finished loading
|
1457 |
* @param bool $ondomready If true the call is postponed until the DOM is finished loading
|
1458 |
* @param array $module A module definition
|
1458 |
* @param array $module A module definition
|
1459 |
*/
|
1459 |
*/
|
1460 |
public function require_js_init_call($function, array $extraarguments = null, $ondomready = false, array $module = null) {
|
1460 |
public function require_js_init_call($function, ?array $extraarguments = null, $ondomready = false, ?array $module = null) {
|
1461 |
$js = new stdClass;
|
1461 |
$js = new stdClass;
|
1462 |
$js->function = $function;
|
1462 |
$js->function = $function;
|
1463 |
$js->extraarguments = $extraarguments;
|
1463 |
$js->extraarguments = $extraarguments;
|
1464 |
$js->ondomready = $ondomready;
|
1464 |
$js->ondomready = $ondomready;
|
1465 |
$js->module = $module;
|
1465 |
$js->module = $module;
|
Línea 1539... |
Línea 1539... |
1539 |
* @param pix_icon $icon
|
1539 |
* @param pix_icon $icon
|
1540 |
* @param string $title
|
1540 |
* @param string $title
|
1541 |
* @param moodle_url $url
|
1541 |
* @param moodle_url $url
|
1542 |
* @param array $attributes
|
1542 |
* @param array $attributes
|
1543 |
*/
|
1543 |
*/
|
1544 |
public function __construct(pix_icon $icon, $title, $url, array $attributes = null) {
|
1544 |
public function __construct(pix_icon $icon, $title, $url, ?array $attributes = null) {
|
1545 |
$this->icon = $icon;
|
1545 |
$this->icon = $icon;
|
1546 |
$this->title = $title;
|
1546 |
$this->title = $title;
|
1547 |
$this->url = new moodle_url($url);
|
1547 |
$this->url = new moodle_url($url);
|
1548 |
if (!empty($attributes)) {
|
1548 |
if (!empty($attributes)) {
|
1549 |
$this->attributes = $attributes;
|
1549 |
$this->attributes = $attributes;
|
Línea 1621... |
Línea 1621... |
1621 |
/**
|
1621 |
/**
|
1622 |
* Contructor
|
1622 |
* Contructor
|
1623 |
* @param course_enrolment_manager $manager
|
1623 |
* @param course_enrolment_manager $manager
|
1624 |
* @param stdClass $plugin
|
1624 |
* @param stdClass $plugin
|
1625 |
*/
|
1625 |
*/
|
1626 |
public function __construct(course_enrolment_manager $manager, enrol_plugin $plugin = null) {
|
1626 |
public function __construct(course_enrolment_manager $manager, ?enrol_plugin $plugin = null) {
|
1627 |
$this->manager = $manager;
|
1627 |
$this->manager = $manager;
|
1628 |
$this->plugin = $plugin;
|
1628 |
$this->plugin = $plugin;
|
1629 |
}
|
1629 |
}
|
Línea 1630... |
Línea 1630... |
1630 |
|
1630 |
|