start:overrides
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| start:overrides [2026/02/08 11:27] – créée admin | start:overrides [2026/02/08 21:23] (Version actuelle) – [Customcripts] admin | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ====A bit of theory==== | ====A bit of theory==== | ||
| + | |||
| + | When talking about managing an open-source technology integration, | ||
| + | |||
| + | All is about trouble of the technical crew assigned to making moodle work. | ||
| + | |||
| + | Directly opposed to this " | ||
| + | |||
| + | The purpose of this chapter is to demonstrate that locking on a Moodle Intrinsic limitation is not a pure fatality. All depends on a fair evaluation of the balance between Maintenance Trouble amount vs. Usage Benefice. Most of the reluctance factors to accept core overrides are measured by the " | ||
| + | |||
| + | We propose further some theorical approach of the concern: | ||
| + | |||
| + | First will we propose a theorical definition of the " | ||
| + | |||
| + | < | ||
| + | |||
| + | The impact unit should be not far from some Energy measurement. | ||
| + | |||
| + | It can be modelized roughly as a function of increasing factors: Number of maintenance operations - Nop, complexitxy of operations - Xop, and probably an organisational factor that increases when both number and complexity grows. Organisational factor can include f.e. an increasing of the number of actors in the operations and the loss in coordination. | ||
| + | |||
| + | Opositely, there is one big factor that helps reducing the technical impact : Automation (Aut). The more automated you are (including also power tools, not necessary fully automated), the less the technical impact will be a trouble. | ||
| + | |||
| + | Now we can address the notion of " | ||
| + | |||
| + | |||
| + | |||
| ====Customcripts==== | ====Customcripts==== | ||
| + | |||
| + | Customscripts are a " | ||
| + | |||
| + | By defining a directory (often ''/ | ||
| + | |||
| + | | ||
| + | |||
| + | In your config file, then any request to a php script say: '' | ||
| + | |||
| + | Customscripts MUST NOT include '' | ||
| + | |||
| + | By ending the customscript by a '' | ||
| + | |||
| + | Customscripts MUST NOT redefine classes, functions or any " | ||
| + | |||
| + | ===Good cases=== | ||
| + | |||
| + | Customscripts work fine when the change is very superficial, | ||
| + | |||
| + | ===Less good cases=== | ||
| + | |||
| + | When the change is deeper, customscripting will force you to deroute deeper calls to derouted APIs, so the code path may need a lot of work to reach the changing point. | ||
| + | |||
| + | Too complicated derouting will lead to replacing a LOT of standard code. As the standard code is occulted in your Moodle, it will not reveal upgrades or bugfixes, so your replaced code will diverge slowly from moodle standard state of the art. this can be problematic. | ||
| ====Core patchs==== | ====Core patchs==== | ||
| + | |||
| + | ====Tracking patches and customscriptings needs in plugin design==== | ||
| [[: | [[: | ||
start/overrides.1770550056.txt.gz · Dernière modification : de admin
