當前位置: 首頁>>代碼示例>>PHP>>正文


PHP comquick2cartHelper::getUserName方法代碼示例

本文整理匯總了PHP中comquick2cartHelper::getUserName方法的典型用法代碼示例。如果您正苦於以下問題:PHP comquick2cartHelper::getUserName方法的具體用法?PHP comquick2cartHelper::getUserName怎麽用?PHP comquick2cartHelper::getUserName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在comquick2cartHelper的用法示例。


在下文中一共展示了comquick2cartHelper::getUserName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display

 /**
  * Display the view
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     //$this->state = $this->get('State');
     $this->item = $this->get('Item');
     //$this->form = $this->get('Form');
     $comquick2cartHelper = new comquick2cartHelper();
     $getPayoutFormData = $this->get('PayoutFormData');
     $this->getPayoutFormData = $getPayoutFormData;
     //print_r($this->getPayoutFormData);die;
     $payee_options = array();
     $payee_options[] = JHtml::_('select.option', '0', JText::_('COM_QUICK2CART_SELECT_PAYEE'));
     if (!empty($getPayoutFormData)) {
         foreach ($getPayoutFormData as $payout) {
             $amt = round($payout->total_amount);
             if ($amt > 0) {
                 $username = $comquick2cartHelper->getUserName($payout->user_id);
                 $payee_options[] = JHtml::_('select.option', $payout->user_id, $username);
             }
         }
     }
     $this->payee_options = $payee_options;
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     $this->addToolbar();
     parent::display($tpl);
 }
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:35,代碼來源:view.html.php

示例2: addPayoutEntry

 /**
  * $res is an object
  * */
 function addPayoutEntry($order_id, $txnid, $status, $pg_plugin)
 {
     // GET BUSINESS EMAIL
     $plugin = JPluginHelper::getPlugin('payment', $pg_plugin);
     $pluginParams = json_decode($plugin->params);
     $businessPayEmial = "";
     if (property_exists($pluginParams, 'business')) {
         $businessPayEmial = trim($pluginParams->business);
     } else {
         return array();
     }
     $params = JComponentHelper::getParams('com_quick2cart');
     $send_payments_to_owner = $params->get('send_payments_to_owner', 0);
     if ($pg_plugin == 'adaptive_paypal') {
         $comquick2cartHelper = new comquick2cartHelper();
         $storeHelper = new storeHelper();
         $adaptiveDetails = $storeHelper->getorderItemsStoreInfo($order_id);
         $Quick2cartModelReports = $comquick2cartHelper->loadqtcClass(JPATH_SITE . "/components/com_quick2cart/models/reports.php", 'Quick2cartModelReports');
         $reportStatus = $status == 'C' ? 1 : 0;
         foreach ($adaptiveDetails as $userReport) {
             $Quick2cartModelpayment = new Quick2cartModelpayment();
             $payDetail = $Quick2cartModelpayment->getPayoutId($txnid, $userReport['owner']);
             if (!empty($payDetail) && $payDetail['status'] == $reportStatus) {
                 // payout already present mean $payDetail will not empty AND STATUS is same then dont process.
                 // for new payout,thisl will not process
                 break;
             }
             $post = array();
             $post['id'] = empty($payDetail['id']) ? '' : $payDetail['id'];
             $post['user_id'] = $userReport['owner'];
             $post['payee_name'] = $comquick2cartHelper->getUserName($post['user_id']);
             $post['paypal_email'] = $userReport['store_email'];
             $post['transaction_id'] = $txnid;
             $post['payment_amount'] = $userReport['commissonCutPrice'];
             $post['payout_date'] = date('Y-m-d');
             $post['status'] = $reportStatus;
             $post['payment_comment'] = "adaptive pay";
             $Quick2cartModelReports->savePayout($post);
         }
     }
 }
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:44,代碼來源:payment.php

示例3: foreach

        echo JText::_('QTC_NAME');
        ?>
</th>
																	<th><?php 
        echo JText::_('QTC_REMAINING_AMOUNT');
        ?>
</th>
																</thead>
																<tbody>
																	<?php 
        $count = 1;
        foreach ($this->getpendingPayouts as $pay) {
            ?>
																		<tr>
																			<?php 
            $uname = $comquick2cartHelper->getUserName($pay->user_id);
            $amt = (double) $pay->total_amount - $pay->fee;
            ?>
																			<td><?php 
            echo $uname;
            ?>
</td>
																			<td><?php 
            echo $comquick2cartHelper->getFromattedPrice($amt);
            ?>
</td>
																		</tr>
																		<?php 
            if ($count >= 5) {
                break;
            }
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:31,代碼來源:dashboard.php


注:本文中的comquick2cartHelper::getUserName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。