moodle-an-hochschulen / moodle-local_staticpage

Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
GNU General Public License v3.0
46 stars 28 forks source link

Improve lib.php #62

Closed abias closed 2 years ago

abias commented 2 years ago

By definition, lib.php should be as small as possible:

Moodle core often (but not always) loads all the lib.php files of the given plugin types. For the performance reasons, it is strongly recommended to keep this file as small as possible and have just required code implemented in it

Source: https://docs.moodle.org/dev/Plugin_files#lib.php

In this plugin, some additional functions are located in lib.php which could be moved to a locallib.php or to autoloaded classes.

abias commented 2 years ago

This issue was solved for the upcoming Moodle 4.0 version in 0336baf