Cannot find function definition for Event Observer class in Magento

For anyone who has seen / used Magento, could you please tell me where I can find the following 3 product function definitions Product Product save action Event Observer: -

  • setBundleOptionsData()
  • setBundleSelectionsData()
  • setCanSaveBundleSelections()

Please forgive me by asking such a stupid question, but I'm really helpless. Any help is appreciated.

The worst part is that the above 3 methods are used beautifully for the product object, and they also work. But where are their definitions?

EDIT: -
Well, I understand that they are used by "Varien_Object", and these are simple setter functions using the Magic Methods concept. But can someone please tell us what is the encoding stream when the program counter comes to such a function, in this case in the Event Observer class?

+3
source share
1 answer

If you searched all the files and cannot find the definition, then they will most likely use PHP magic methods . Is this class an inheritance (directly or indirectly) from Varien_Object? If so, then these are simple setter functions that store data in an array inside an object.

, 'set' to 'get':

$this->setBundleOptionsData('whatever');
echo $this->getBundleOptionsData(); //Returns 'whatever'

, , Varien_Object. .

+6

Source: https://habr.com/ru/post/1751549/


All Articles