コード例 #1
0
 protected function _beforeInsert(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeInsert($row);
     $row->status = 'ordered';
     $row->checkout_component_id = $this->_getParam('componentId');
     $row->cart_component_class = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'))->parent->componentClass;
 }
コード例 #2
0
 protected function _beforeInsert(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeInsert($row);
     $row->subscribe_date = date('Y-m-d H:i:s');
     if ($row->getModel()->hasColumn('activated')) {
         $row->activated = 1;
     }
     $row->newsletter_component_id = $this->_getParam('newsletterComponentId');
 }
コード例 #3
0
 protected function _beforeInsert(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeInsert($row);
     $row->customer_id = $this->_getParam('customer_id');
     $authedUser = Kwf_Registry::get('userModel')->getAuthedUser();
     if ($authedUser) {
         $row->insert_uid = $authedUser->id;
     }
 }
コード例 #4
0
 protected function _beforeInsert(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeInsert($row);
     if (!$row->tag) {
         $row->tag = 'span';
     }
     $pattern = Kwc_Abstract::getSetting($this->_getParam('componentClass'), 'stylesIdPattern');
     if ($pattern) {
         //todo: wenns irgendwann berechtigungen gibt hier auch überprüfen ob der aktuelle
         //user diese componentClass & component_id bearbeiten darf
         if (preg_match('#' . $pattern . '#', $this->_getParam('componentId'), $m)) {
             $row->ownStyles = $m[0];
         }
     }
 }
コード例 #5
0
 protected function _beforeInsert(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeInsert($row);
     $row->customer_id = $this->_getParam('customer_id');
 }