protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); if ($event->isDirty(array('kwf_upload_id', 'width', 'height', 'dimension', 'crop_x', 'crop_y', 'crop_width', 'crop_height'))) { $this->_fireMediaChanged($c); } }
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); $reference = $event->row->getModel()->getReference(Kwc_Abstract::getSetting($this->_class, 'uploadModelRule')); if ($event->isDirty($reference['column'])) { $this->fireEvent(new Kwf_Events_Event_Media_Changed($this->_class, $c)); } }
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); if ($event->isDirty('kwf_upload_id')) { $this->fireEvent(new Kwf_Events_Event_Media_Changed($this->_class, $c)); } if ($event->isDirty('filename') || $event->isDirty('kwf_upload_id')) { $this->fireEvent(new Kwf_Component_Event_Page_UrlChanged($this->_class, $c)); } }
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); if ($event->isDirty(array('video_width', 'video_height'))) { $this->fireEvent(new Kwf_Component_Event_Component_ContentWidthChanged($this->_class, $c)); } if ($event->isDirty(array('mp4_kwf_upload_id'))) { $this->_fireMediaChanged($c, 'mp4'); } if ($event->isDirty(array('ogg_kwf_upload_id'))) { $this->_fireMediaChanged($c, 'ogg'); } if ($event->isDirty(array('webm_kwf_upload_id'))) { $this->_fireMediaChanged($c, 'webm'); } //content changed foreach (Kwf_Component_Data_Root::getInstance()->getComponentsByDbId($event->row->component_id) as $c) { $this->fireEvent(new Kwf_Component_Event_Component_ContentChanged($this->_class, $c)); } }
protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event) { parent::_onOwnRowUpdateNotVisible($c, $event); $this->fireEvent(new Kwf_Events_Event_Media_Changed($this->_class, $c)); }