Exemplo n.º 1
0
    public function enable()
    {
        $payment         = $this->Payment();
        $payment->active = 1;
        $payment->save();

        return parent::enable();
    }
Exemplo n.º 2
0
 /**
  * Shopware method automatically getting called for plugin Activation
  *
  * @return boolean Indicator of success
  */
 public function enable()
 {
     if (parent::enable()) {
         try {
             $installer = new Shopware_Plugins_Frontend_SofortPayment_Components_Services_Setup($this);
             $installer->softUpdate();
             return true;
         } catch (Exception $exception) {
             return false;
         }
     }
     return false;
 }