本文整理汇总了PHP中Account::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Account::unsetAttributes方法的具体用法?PHP Account::unsetAttributes怎么用?PHP Account::unsetAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Account
的用法示例。
在下文中一共展示了Account::unsetAttributes方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo $form->hiddenField($model, 'journaldetailid');
echo $form->hiddenField($model, 'genjournalid');
?>
<div class="row">
<?php
echo $form->labelEx($model, 'accountid');
echo $form->hiddenField($model, 'accountid');
?>
<input type="text" name="account_name" id="account_name" title="Account name" readonly value="<?php
echo Account::model()->findByPk($model->accountid) !== null ? Account::model()->findByPk($model->accountid)->accountname : '';
?>
">
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'account_dialog', 'options' => array('title' => Yii::t('app', 'Account'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$account = new Account('searchwstatus');
$account->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$account->attributes = $_GET['Account'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'account-grid', 'dataProvider' => $account->Searchwstatus(), 'filter' => $account, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V",
array("name" => "send_absschedule",
"id" => "send_absschedule",
"onClick" => "$(\\"#account_dialog\\").dialog(\\"close\\"); $(\\"#account_name\\").val(\\"$data->accountname\\"); $(\\"#Journaldetail_accountid\\").val(\\"$data->accountid\\");
"))'), array('name' => 'accountid', 'visible' => false, 'value' => '$data->accountid', 'htmlOptions' => array('width' => '1%')), 'accountcode', 'accountname')));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#account_dialog").dialog("open"); return false;'));
?>
<?php
echo $form->error($model, 'accountid');
示例2: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Account('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$model->attributes = $_GET['Account'];
}
$this->render('admin', array('model' => $model));
}
示例3: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Account('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$model->attributes = $_GET['Account'];
}
}
示例4: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
// is current user has the required privilege ?
if (!Yii::app()->user->checkAccess('account_admin')) {
throw new CHttpException(403, 'You are not authorized to perform this action.');
}
$model = new Account('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$model->attributes = $_GET['Account'];
}
$this->render('admin', array('model' => $model));
}
示例5: actionIndex
/**
* Lists all models.
*/
public function actionIndex()
{
parent::actionIndex();
$this->lookupdata();
$model = new Account('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$model->attributes = $_GET['Account'];
}
if (isset($_GET['pageSize'])) {
Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
unset($_GET['pageSize']);
// would interfere with pager and repetitive page size change
}
$this->render('index', array('model' => $model, 'parentaccount' => $this->parentaccount, 'currency' => $this->currency, 'accounttype' => $this->accounttype));
}
示例6: actionIndex
/**
* Lists all models.
*/
public function actionIndex()
{
$this->title = 'Daftar Akun';
$model = new Account('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Account'])) {
$model->attributes = $_GET['Account'];
}
$this->render('index', array('model' => $model));
}