/**
  * {@inheritDoc}
  */
 public function setAdded($added)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAdded', array($added));
     return parent::setAdded($added);
 }
Esempio n. 2
0
 /**
  * Set 'added' property
  *
  * @param boolean $added Property value
  *
  * @return \XLite\Model\Payment\Method
  */
 public function setAdded($added)
 {
     $result = parent::setAdded($added);
     if (Paypal\Main::PP_METHOD_EC == $this->getServiceName()) {
         if (!$added) {
             \XLite\Core\Database::getRepo('XLite\\Model\\Config')->createOption(array('category' => 'CDev\\Paypal', 'name' => 'show_admin_welcome', 'value' => 'N'));
         }
     }
     return $result;
 }