Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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;
         }
     }
 }
Ejemplo n.º 3
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['placeholder']['submitButton'] = trlKwfStatic('save');
     return $ret;
 }
Ejemplo n.º 4
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['child']['component']['success'] = 'Kwc_Posts_QuickWrite_Form_Success_Component';
     return $ret;
 }
Ejemplo n.º 5
0
 protected function _initForm()
 {
     parent::_initForm();
     $v = "[quote]\n" . $this->getData()->parent->parent->parent->row->content . "\n[/quote]\n";
     $this->_form->fields['content']->setDefaultValue($v);
 }