本文整理汇总了PHP中Payment::unsetAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Payment::unsetAttributes方法的具体用法?PHP Payment::unsetAttributes怎么用?PHP Payment::unsetAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Payment
的用法示例。
在下文中一共展示了Payment::unsetAttributes方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionAdmin
public function actionAdmin()
{
$model = new Payment('search');
$model->unsetAttributes();
if (isset($_GET['Payment'])) {
$model->setAttributes($_GET['Payment']);
}
$this->render('admin', array('model' => $model));
}
示例2: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new Payment();
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Payment'])) {
$model->attributes = $_GET['Payment'];
}
$this->render('admin', array('model' => $model));
}
示例3: actionIndex
public function actionIndex()
{
$model = new Payment('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['Payment'])) {
$model->attributes = $_GET['Payment'];
}
$this->render('index', ['model' => $model]);
}
示例4: actionCustomerdatewisepayments
public function actionCustomerdatewisepayments()
{
$model = new Payment( 'search' );
$model->unsetAttributes(); // clear any default values
if ( isset( $_GET['Payment'] ) )
$model->attributes = $_GET['Payment'];
$this->render( 'customerdatewisepayments', array(
'model' => $model,
) );
}
示例5: actionView
public function actionView()
{
$model = new Payment('search');
$model->unsetAttributes();
if (Yii::app()->request->isAjaxRequest) {
$params = Yii::app()->request->getParam('Payment');
$model->setAttributes($params);
Yii::app()->user->setState('PaymentFilterState', $params);
$test = '=);';
}
$data = $model->getTotalData();
$data = array('in' => array('sum' => empty($data) ? 0 : $data[0]['s'], 'count' => empty($data) ? 0 : $data[0]['ctn']), 'out' => array('sum' => empty($data) ? 0 : $data[1]['s'], 'count' => empty($data) ? 0 : $data[1]['ctn']));
$this->render('admin', array('model' => $model, 'data' => $data, 'test' => $test));
}
示例6: renderPCTypeDashboard
public function renderPCTypeDashboard()
{
$ordertask =new Ordertask('search');
$ordertask->unsetAttributes(); // clear any default values
$milestone =new Milestone('search');
$milestone->unsetAttributes(); // clear any default values
$orderlistLookup = Yii::app()->controller->getOrdersLookup();
if(!empty($orderlistLookup))
{
$tmp = array_keys($orderlistLookup);
$ordertask->order_id = $tmp[0];
$milestone->order_id = $tmp[0];
}
if(isset($_GET['Ordertask']))
$ordertask->attributes=$_GET['Ordertask'];
if(isset($_GET['Milestone']))
$milestone->attributes=$_GET['Milestone'];
$payinmodel =new Payment('search');
$payinmodel->unsetAttributes(); // clear any default values
if(isset($_GET['Payment']))
$payinmodel->attributes=$_GET['Payment'];
$totalAR = 0;
$totalAP = 0;
$totalCash = 0;
$accountchart = $this->getAccountChart($totalAR, $totalAP, $totalCash);
$mschart = $this->getMSTaskChart($milestone->order_id);
$this->render( $this->getView('index','index'),
array(
'ordertask' => $ordertask,
'milestone'=>$milestone,
'orderlistLookup' => $orderlistLookup,
'accountchart' => $accountchart,
'mschart' => $mschart,
'payinmodel'=>$payinmodel,
'totalAR' => $totalAR,
'totalAP' => $totalAP,
'totalCash' => $totalCash,
)
);
}
示例7: actionIndex
/**
* Lists all models.
*/
public function actionIndex()
{
$model = new Payment('search');
$model->unsetAttributes();
// clear any default values
if (Yii::app()->user->role == 'manager') {
$model->findAll(array('condition' => 'manager_id = ' . Yii::app()->user->id));
}
if (isset($_GET['Payment'])) {
$model->attributes = $_GET['Payment'];
//print_r ( $model -> attributes );
}
$this->render('admin', array('model' => $model));
}
示例8: commonAdmint
public function commonAdmint($partyrole)
{
$model = new Payment( 'search' );
$model->unsetAttributes(); // clear any default values
if ( isset( $_GET['Payment'] ) )
$model->attributes = $_GET['Payment'];
//$model->party_id = $partyrole;
$this->render( 'admin', array(
'model' => $model,
) );
}