本文整理汇总了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();
}