当前位置: 首页>>代码示例>>PHP>>正文


PHP Payment::unsetAttributes方法代码示例

本文整理汇总了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));
 }
开发者ID:schmunk42,项目名称:yii-sakila-crud,代码行数:9,代码来源:PaymentController.php

示例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));
 }
开发者ID:lhfcainiao,项目名称:basic,代码行数:13,代码来源:PaymentController.php

示例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]);
 }
开发者ID:alextravin,项目名称:yupe,代码行数:10,代码来源:PaymentBackendController.php

示例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,
            ) );
}
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:11,代码来源:ReportsController.php

示例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));
 }
开发者ID:akoch-ov,项目名称:dipstart-development,代码行数:14,代码来源:PaymentController.php

示例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,
                         )
                 );
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:45,代码来源:SiteController.php

示例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));
 }
开发者ID:GKillah,项目名称:social,代码行数:17,代码来源:PaymentController.php

示例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,
     ) );
 }
开发者ID:Rajagunasekaran,项目名称:BACKUP,代码行数:12,代码来源:PaymentController.php


注:本文中的Payment::unsetAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。