Calls the RegisterForm::save(false) method and doesn't send an email
@return boolean
558161
public function save($sendEmail = false)
    {
        // If the parent form saved and validated
        if (parent::save($sendEmail))
        {
            // Then bind the identity to this user permanently
	    $meta = UserMetadata::model()->generatePrototype('UserMetadata', array(
		'user_id' => $this->_user->id,
		'key' => $this->provider.'Provider',
	    ));

	    $meta->value = $this->adapter->identifier;

            // Save the associative object
            return $meta->save();
        }

        return false;
    }
616262
public function save()
	{
		// Validate
		if (!$this->validate())
		{
			return false;
		}

		// Handle cases where the primary key might be an empty string
		// For auto-increment in strict-mode DBs, this needs to be NULL
		// instead.
		if ($this->hasAttribute($this->getPrimaryKey())
		 && !$this->get($this->getPrimaryKey()))
		{
			$this->set($this->getPrimaryKey(), null);
		}

		// See if we're creating or updating
		$method = $this->isNew() ? 'create' : 'modify';
		$result = $this->$method();

		// Only perform the following upon success
		if ($result)
		{
			// Purge cache
			$this->purgeCache();

			// If creating, result is our new id, so set that back on the model
			if ($this->isNew())
			{
				$this->set($this->getPrimaryKey(), $result);
				\Event::trigger($this->getTableName() . '_new', ['model' => $this]);
			}

			\Event::trigger('system.onContentSave', array($this->getTableName(), $this));
		}

		return $result;
	}
215544
protected function SaveElement()
    {
        $this->register->SetConfirmUrl($this->selectorConfirm->Save($this->register->GetConfirmUrl()));
        $this->register->SetNextUrl($this->selectorNext->Save($this->register->GetNextUrl()));
        $this->register->SetMailFrom($this->Value('MailFrom'));
        $this->register->SetMailText1($this->Value('MailText1'));
        $this->register->SetMailText2($this->Value('MailText2'));
        $this->register->SetMailSubject($this->Value('MailSubject'));
        $this->register->SetMailStyles($this->Value('MailStyles'));
        return $this->register;
    }
768931
public function save() {

		$aUpdate =& self::$_lPoolDataChange[$this->_sConfig][$this->_mID];
		$aOrig   =& self::$_lPoolData[$this->_sConfig][$this->_mID];

		if ($aUpdate === $aOrig) {
			return FALSE;
		}

		$aOP = ($aOrig === FALSE) ? $aUpdate : self::_getDiff($aOrig, $aUpdate);

		$aOrig = $aUpdate;

		return $this->_coll()->update(
			[static::$_mKey => $this->_mID],
			$aOP,
			['upsert' => TRUE]
		);
	}
992098
public function save()
	{
		$data = $this->get('details');

		if ($data instanceof Registry)
		{
			$this->set('details', $data->toString());
		}
		else if (!is_string($data))
		{
			$this->set('details', json_encode($data));
		}

		$isNew = $this->isNew();
		$result = parent::save();

		if ($result)
		{
			Event::trigger('activity.onLogSave', [$this, $isNew]);
		}

		return $result;
	}
833904
protected function SaveElement()
    {
        $this->confirm->SetErrorUrl($this->selectorError->Save($this->confirm->GetErrorUrl()));
        $this->confirm->SetSuccessUrl($this->selectorSuccess->Save($this->confirm->GetSuccessUrl()));
        $this->confirm->SetActivate((bool)$this->Value('Activate'));
        return $this->confirm;
    }
227307
public function callbackSubmit()
    {
        // Get values from the submitted form
        $name       = $this->form->value("name");
        $email       = $this->form->value("email");
        $question       = $this->form->value("question");
        $password      = $this->form->value("password");
        $passwordAgain = $this->form->value("password-again");

        // Check password matches
        if ($password !== $passwordAgain) {
            $this->form->rememberValues();
            $this->form->addOutput("Password did not match.");
            return false;
        }

        if (preg_match("/[^-a-z0-9_]/i", $name)) {
            $this->form->addOutput("Ogiltigt användarnamn, vänligen försök igen.");
            return false;
        }

         $user = new User();
         $user->setDb($this->di->get("db"));

        if ($user->userExists($name)) {
             $this->form->addOutput("User already exists");
             return false;
        }

          $user->name = $name;
          $user->email = $email;
          $user->question = $question;
          $user->setPassword($password);
          $user->save();

          $this->di->get('session')->set("user", $name); # set user in session
          $this->di->get("response")->redirect("user/profile");
    }
494090
public function save()
    {
        if ($this->validate()) {
            $manager = Configs::authManager();
            if ($this->_item === null) {
                if ($this->type == Item::TYPE_ROLE) {
                    $this->_item = $manager->createRole($this->name);
                } else {
                    $this->_item = $manager->createPermission($this->name);
                }
                $isNew = true;
            } else {
                $isNew = false;
                $oldName = $this->_item->name;
            }
            $this->_item->name = $this->name;
            $this->_item->description = $this->description;
            $this->_item->ruleName = $this->ruleName;
            $this->_item->data = $this->data === null || $this->data === '' ? null : Json::decode($this->data);
            if ($isNew) {
                $manager->add($this->_item);
            } else {
                $manager->update($oldName, $this->_item);
            }
            Helper::invalidate();
            return true;
        } else {
            return false;
        }
    }
190153
public function save()
    {
        if ($this->validate()) {
            $manager = Configs::authManager();
            $class = $this->className;
            if ($this->_item === null) {
                $this->_item = new $class();
                $isNew = true;
            } else {
                $isNew = false;
                $oldName = $this->_item->name;
            }
            $this->_item->name = $this->name;

            if ($isNew) {
                $manager->add($this->_item);
            } else {
                $manager->update($oldName, $this->_item);
            }

            return true;
        } else {
            return false;
        }
    }
267758
public function save()
    {
        $soxId = $this->getEditObjectId();
        $aParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editval");
        $aParams['oxnewsletter__oxshopid'] = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        $oNewsletter = oxNew(\OxidEsales\Eshop\Application\Model\Newsletter::class);
        if ($soxId != "-1") {
            $oNewsletter->load($soxId);
        } else {
            $aParams['oxnewsletter__oxid'] = null;
        }

        $oNewsletter->assign($aParams);
        $oNewsletter->save();

        // set oxid if inserted
        $this->setEditObjectId($oNewsletter->getId());
    }
1254366
public function save()
    {
        if (!is_array($this->_aFieldNames)) {
            return false;
        }

        // #739A - should be executed here because of date/time formatting feature
        if ($this->isAdmin() && !\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blSkipFormatConversion')) {
            foreach ($this->_aFieldNames as $name => $value) {
                $longName = $this->_getFieldLongName($name);
                if (isset($this->$longName->fldtype) && $this->$longName->fldtype == 'datetime') {
                    \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDateTime($this->$longName, true);
                } elseif (isset($this->$longName->fldtype) && $this->$longName->fldtype == 'timestamp') {
                    \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBTimestamp($this->$longName, true);
                } elseif (isset($this->$longName->fldtype) && $this->$longName->fldtype == 'date') {
                    \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDate($this->$longName, true);
                }
            }
        }

        $return = false;

        $action = null;
        $response = null;
        /** We must check on the master database, if an entry exists, so we switch to master connection.*/
        \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();
        if ($this->exists()) {
            //only update if derived update is allowed
            if ($this->allowDerivedUpdate()) {
                $response = $this->_update();
                $action = ACTION_UPDATE;
            }
        } else {
            $response = $this->_insert();
            $action = ACTION_INSERT;
            $this->dispatchEvent(new AfterModelInsertEvent($this));
        }

        $this->onChange($action);

        if ($response) {
            $return = $this->getId();
        }

        return $return;
    }
739315
protected function SaveElement()
    {
        $this->radio->SetLabel($this->Value('Label'));
        $this->radio->SetName($this->Value('Name'));
        $this->radio->SetValue($this->Value('Value'));
        $this->radio->SetRequired((bool)$this->Value('Required'));
        $this->radio->SetDisableFrontendValidation((bool)$this->Value('DisableFrontendValidation'));
        return $this->radio;
    }
977783
public function resend()
    {
        if (!$this->validate()) {
            return false;
        }
        /** @var UserToken $token */
        $token = new UserToken(['user_id' => $this->user->id, 'type' => UserToken::TYPE_CONFIRMATION]);
        $token->save(false);
        Yii::$app->sendMail($this->user->email,Yii::t('yuncms', 'Confirm account on {0}', Yii::$app->name),'user/confirmation',['user' => $this->user, 'token' => $token]);
        Yii::$app->session->setFlash('info', Yii::t('yuncms', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'));
        return true;
    }
1185653
protected function _post()
    {
        $subject = $this->_subject([
            'entity' => $this->_entity($this->_request()->getData(), $this->saveOptions()),
            'saveMethod' => $this->saveMethod(),
            'saveOptions' => $this->saveOptions()
        ]);

        $event = $this->_trigger('beforeSave', $subject);
        if ($event->isStopped()) {
            return $this->_stopped($subject);
        }

        $saveCallback = [$this->_table(), $subject->saveMethod];
        if (call_user_func($saveCallback, $subject->entity, $subject->saveOptions)) {
            return $this->_success($subject);
        }

        $this->_error($subject);
    }
276239
public function resend() {
    if (!$this->validate()) {
      return false;
    }
    /** @var Token $token */
    $token = Yii::createObject([
      'class' => Token::className(),
      'userId' => $this->user->id,
      'type' => Token::TYPE_CONFIRMATION,
    ]);
    $token->save(false);
    $this->mailer->sendConfirmationMessage($this->user, $token);
    Yii::$app->session->setFlash('info', Yii::t('users', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'));

    return true;
  }
1011833
public function save()
    {
        $blSaved = parent::save();
        if ($blSaved && $this->oxcontents__oxloadid->value === 'oxagb') {
            $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
            $sVersion = $this->oxcontents__oxtermversion->value;

            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
            // dropping expired..
            $oDb->execute("delete from oxacceptedterms where oxshopid='{$sShopId}' and oxtermversion != " . $oDb->quote($sVersion));
        }

        return $blSaved;
    }
34160
public function saveFromPost()
    {
        $id = str_replace('\\', '_', get_class($this));
        if ($data = \Devil::app()->post->getOnce($id)) {
            unset($data[$this->getRoleValue('id')]);
            if (isset($data['clearAttachment'])) {
                foreach (array_keys($data['clearAttachment']) as $attr) {
                    $this->clearAttached($attr);
                }
            }
            $this->setAttributes($data);
            if ($this->validate()) {
                $this->save();
                return true;
            } else {
                // validation contains errors
            }
        }
        return false;
    }