本文整理汇总了PHP中Status::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Status::unsetAttributes方法的具体用法?PHP Status::unsetAttributes怎么用?PHP Status::unsetAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Status
的用法示例。
在下文中一共展示了Status::unsetAttributes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionResolutionList
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionResolutionList()
{
date_default_timezone_set("Asia/Manila");
$activity = new Activity();
$activity->act_desc = 'Viewed Committee Meeting List for Resolution';
$activity->act_datetime = date('Y-m-d G:i:s');
$activity->act_by = User::model()->findByPK(Yii::app()->user->name)->emp_id;
$activity->save();
$model = new Status('forResolution');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Status'])) {
$model->attributes = $_GET['Status'];
}
$this->render('resolutionList', array('model' => $model));
}
示例2: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Status('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Status'])) {
$model->attributes = $_GET['Status'];
}
if ($this->isExportRequest()) {
$this->exportCSV($model->search(), array('status'));
}
$this->render('admin', array('model' => $model));
}
示例3: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Status('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Status'])) {
$model->attributes = $_GET['Status'];
}
$this->render('admin', array('model' => $model));
}