本文整理匯總了PHP中unknown::save方法的典型用法代碼示例。如果您正苦於以下問題:PHP unknown::save方法的具體用法?PHP unknown::save怎麽用?PHP unknown::save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類unknown
的用法示例。
在下文中一共展示了unknown::save方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: performPersonalInfoRegistration
/**
*
* @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: save
/**
* SAVE 命令執行一個同步保存操作,將當前 Redis 實例的所有數據快照(snapshot)以 RDB 文件的形式保存到硬
* @return type
*/
public function save()
{
return $this->cacheWrite->save();
}
示例3: resetPassword
/**
* 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: mysave
/**
* Call an object's save method
*
* @param unknown $object
*
* @return void
*/
private static function mysave($object)
{
$object->save();
}