/** * * @param unknown $model */ public function performPersonalInfoRegistration($model) { $output = false; if (isset($model)) { if (isset(Yii::app()->session['registration_user_id'])) { $model->user_id = Yii::app()->session['registration_user_id']; if ($model->save()) { $output = true; } Yii::app()->session['registration_user_first_name'] = $model->first_name; Yii::app()->session['registration_user_last_name'] = $model->last_name; Yii::app()->session['registration_user_gender'] = $model->gender; Yii::app()->session['registration_user_birthdate'] = $model->birthdate; } } return $output; }
/** * SAVE 命令执行一个同步保存操作,将当前 Redis 实例的所有数据快照(snapshot)以 RDB 文件的形式保存到硬 * @return type */ public function save() { return $this->cacheWrite->save(); }
/** * Always reset the password on login to random value, otherwise checkCredentialsHook will not be triggered * @param String - Input Username $username * @param String - Input Password $password * @param unknown $objMember * @return boolean */ public static function resetPassword(&$objMember, $strUsername) { // store randomized password, so contao will always trigger the checkCredentials HOOK $objMember->password = md5(time() . $strUsername); $objMember->save(); }
/** * Call an object's save method * * @param unknown $object * * @return void */ private static function mysave($object) { $object->save(); }