protected function _afterInsert(Kwf_Model_Row_Interface $row) { parent::_afterInsert($row); $dir = $this->getData()->getParentByClass('Kwc_Blog_Comments_Directory_Component'); if ($dir) { $dir->getComponent()->afterAddComment($row); } }
protected function _beforeInsert(Kwf_Model_Row_Interface $row) { parent::_beforeInsert($row); $settingsRow = $this->_getSettingsRow(); if ($settingsRow->post_activation_type == Kwc_Guestbook_Component::INACTIVE_ON_SAVE) { $row->visible = 0; } else { if ($settingsRow->post_activation_type == Kwc_Guestbook_Component::ACTIVE_ON_SAVE) { $row->visible = 1; } } }
public static function getSettings() { $ret = parent::getSettings(); $ret['placeholder']['submitButton'] = trlKwfStatic('save'); return $ret; }
public static function getSettings() { $ret = parent::getSettings(); $ret['generators']['child']['component']['success'] = 'Kwc_Posts_QuickWrite_Form_Success_Component'; return $ret; }
protected function _initForm() { parent::_initForm(); $v = "[quote]\n" . $this->getData()->parent->parent->parent->row->content . "\n[/quote]\n"; $this->_form->fields['content']->setDefaultValue($v); }