Joomla Asked by Dmitry Zar on September 5, 2021
I found some errors in the code of a third-party system plugin,
it is assumed that the developer will release updates and fix them,
but for today I would like to fix them myself, for this I made my system plugin,
in which I want to fix these methods. Not the whole class, but the methods. It is supposed to use something like a decorator.
I understand that you need to do this in the system plugin and I did it. Can this be implemented in this way?
class PlgOverride extends PlgAnotherExtension
{
public function fixMehodName($type, $data)
{
// my code
return parent::fixMehodName($type, $data);
}
}
The official documentation https://docs.joomla.org/Plugin/Events/System says about events through which you can influence, but everywhere we are talking about replacing the entire class and only about kernel files or components or modules and not plugins.
1 Asked on January 6, 2022 by user3533235
1 Asked on December 30, 2021 by mano-meter
2 Asked on December 19, 2021
2 Asked on December 11, 2021
0 Asked on December 11, 2021 by sandro-antonucci
1 Asked on November 27, 2021
error handling extensions joomla 3 x server response time update
2 Asked on November 27, 2021 by lovntola
2 Asked on November 25, 2021
1 Asked on November 20, 2021
1 Asked on November 19, 2021 by matthiasdunkel
1 Asked on November 5, 2021 by fruit_alchemist
2 Asked on September 5, 2021 by user2363969
3 Asked on September 5, 2021 by jamesmandatory
0 Asked on September 5, 2021 by kaballo
1 Asked on September 5, 2021 by gart
1 Asked on September 5, 2021 by user1616338
1 Asked on September 5, 2021 by ygiorgos
2 Asked on September 5, 2021 by okisan
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP