public function save() { Doctrine::getTable('BlogRssCache')->deleteByMemberId($this->member->getId()); parent::save(); Doctrine::getTable('BlogRssCache')->updateByMemberId($this->member->getId()); return true; }
public function save() { parent::save(); $user = sfContext::getInstance()->getUser(); $user->setCulture($this->getValue('language')); return true; }
public function save() { if ($this->isOAuthAuthenticate() && array_key_exists(self::IS_GOOGLE_CALENDAR_OAUTH_KEY_REVOKE, $this->values)) { $isDelete = (bool) $this->values[self::IS_GOOGLE_CALENDAR_OAUTH_KEY_REVOKE]; unset($this->values[self::IS_GOOGLE_CALENDAR_OAUTH_KEY_REVOKE]); if ($isDelete) { $con = opDoctrineQuery::getMasterConnection(); $con->beginTransaction(); try { $this->opCalendarOAuth->getClient()->revokeToken(); opCalendarPluginToolkit::deleteMemberGoogleCalendar($this->member); $con->commit(); } catch (Exception $e) { $con->rollback(); return false; } } } return parent::save(); }
public function save() { parent::save(); return true; }
public function save() { unset($this->values['now_password']); parent::save(); }