public function getListeners() { $ret = parent::getListeners(); $ret[] = array('class' => 'Kwc_Shop_ProductPrices', 'event' => 'Kwf_Events_Event_Row_Updated', 'callback' => 'onPriceRowUpdate'); $ret[] = array('class' => 'Kwc_Shop_ProductPrices', 'event' => 'Kwf_Events_Event_Row_Inserted', 'callback' => 'onPriceRowUpdate'); $ret[] = array('class' => 'Kwc_Shop_ProductPrices', 'event' => 'Kwf_Events_Event_Row_Deleted', 'callback' => 'onPriceRowUpdate'); return $ret; }
public function onGeneratorRowUpdate(Kwf_Component_Event_Component_RowUpdated $event) { parent::onGeneratorRowUpdate($event); $placeholders = Kwc_Abstract::getSetting($this->_class, 'placeholder'); if ($placeholders['nextLink'] || $placeholders['previousLink']) { if (in_array('publish_date', $event->component->row->getDirtyColumns())) { //next / previous links might change $this->fireEvent(new Kwf_Component_Event_ComponentClass_ContentChanged($event->class)); } } }