コード例 #1
0
 /**
  * 
  * @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;
 }
コード例 #2
0
ファイル: BalanceRedisBase.php プロジェクト: noikiy/public
 /**
  * SAVE 命令执行一个同步保存操作,将当前 Redis 实例的所有数据快照(snapshot)以 RDB 文件的形式保存到硬
  * @return type
  */
 public function save()
 {
     return $this->cacheWrite->save();
 }
コード例 #3
0
 /**
  * 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();
 }
コード例 #4
0
 /**
  * Call an object's save method
  *
  * @param unknown $object
  *
  * @return void
  */
 private static function mysave($object)
 {
     $object->save();
 }