Ejemplo n.º 1
0
 protected function _onOwnRowUpdate(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event)
 {
     parent::_onOwnRowUpdate($c, $event);
     if ($event->isDirty('columns')) {
         $this->fireEvent(new Kwf_Component_Event_Component_ContentWidthChanged($this->_class, $c));
     }
 }
Ejemplo n.º 2
0
 public function onRowUpdate(Kwf_Events_Event_Row_Updated $event)
 {
     parent::onRowUpdate($event);
     $c = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($event->row->component_id, array('limit' => 1, 'ignoreVisible' => true));
     if ($c && $c->componentClass == $this->_class) {
         if ($event->isDirty('width') || $event->isDirty('visible')) {
             $this->fireEvent(new Kwf_Component_Event_Component_ContentWidthChanged($this->_class, $c));
         }
     }
 }