Well, I need help on writing the update function of my class:
From the example (wiki)
Code:
/**
* Update Method
*
* Called by observed class when any of our notifiable events occur
*
* @param object $class
* @param string $eventID
*/
function update(&$class, $eventID) {
Ok does $class must be $class or have I to name it according to the class I want to access?
$eventID: what's this? in wiki is said that this is the name of the notifier... well I don't understand how I have to define the name of my notifier, since in the example $eventID isn't used through the update function O_o
I think I'm missing a lot....
besides the definiton of function parameters, then I'd need to get what in order.php is defined this way: $attributes_values->fields['products_attributes_filename']
and change that variable value with something else
how may I access to that value and then replace it with something else?
I understood how to work with session variables (maybe) and how to access simple variables, but the one I need to access is beyond my knowledge of OOP.
Thank you very much!