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


PHP Helpers::getUniqueCampaignID方法代碼示例

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


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

示例1: getCampaignDetails

 public function getCampaignDetails($campaign_id)
 {
     $uniqid = Helpers::getUniqueCampaignID($campaign_id);
     $myDetails = Helper::getCampaignSummary($uniqid);
     $myVideo = Helper::getVideoContent($uniqid);
     if (empty($myVideo)) {
         $myVideo[0] = new stdClass();
         $myVideo[0]->video_url = "no video";
     }
     if (\Request::ajax()) {
         return View::make('campaign_details', compact('myVideo', 'myDetails', 'campaign_id'));
     }
 }
開發者ID:centaurustech,項目名稱:bmradi,代碼行數:13,代碼來源:HomeController.php

示例2: getCampaignAppAction

 public static function getCampaignAppAction($campaignID, $edit = false)
 {
     $actions_content = '';
     $c_id = Helpers::getUniqueCampaignID($campaignID);
     $rs = DB::Select("SELECT campaignstatus,approvalstatus FROM tbl_campaigns WHERE id = ?", array($campaignID));
     /*
      * Edit and Rejected Options for Entre
      */
     if (!Helpers::isCampaignComplete($campaignID) && strtoupper(Session::get('account_type')) == 'ENTREPRENEUR' && !$edit) {
         $actions_content .= '<li>' . Helpers::getCampaignAction($campaignID) . '</li>';
     } elseif (Helpers::isCampaignComplete($campaignID) && strtoupper($rs[0]->approvalstatus) == 'PENDING' && strtoupper($rs[0]->campaignstatus) != 'PUBLISHED' && Session::get('account_type') == 'ENTREPRENEUR') {
         $actions_content .= (!$edit ? '<li>' . Helpers::getCampaignAction($campaignID) . '</li>' : '') . '<a href="javascript:submitAction(\'' . URL() . '/campaign/Publish/' . $c_id . '\')" class="Cpcomment">Publish</a>
                             </li>';
     } elseif (Helpers::isCampaignComplete($campaignID) && strtoupper($rs[0]->approvalstatus) == 'PENDING' && strtoupper($rs[0]->campaignstatus) == 'PUBLISHED' && Session::get('account_type') == 'ADMIN') {
         $actions_content .= '<li><a href="javascript:submitAction(\'' . URL() . '/campaign/Approve/' . $c_id . '\')" class="Cpcomment">Approve</a></li>
                             <li><a href="javascript:submitAction(\'' . URL() . '/campaign/Reject/' . $c_id . '\')" class="Cpcomment">Mark for review</a></li>
                             <li><a href="javascript:submitAction(\'' . URL() . '/campaign/Deactivate/' . $c_id . '\')" class="Cpcomment">Reject</a></li>';
     } else {
         $actions_content = '';
     }
     if ($actions_content != '') {
         $actions = '<div class="btn-group">
         <button type="button" class="btn btn-warning btn-flat btn-sm">Campaign Action</button>
         <button type="button" class="btn btn-warning btn-flat dropdown-toggle btn-sm" data-toggle="dropdown">
         <span class="caret"></span>
         <span class="sr-only">Toggle Dropdown</span>
         </button>
         <ul class="dropdown-menu" role="menu">';
         $actions .= $actions_content . '</ul></div>';
     } else {
         $actions = '<div style="height:29px"></div>';
     }
     return $actions;
 }
開發者ID:centaurustech,項目名稱:bmradi,代碼行數:34,代碼來源:Helpers.php

示例3: array

            <td><b>Currency</b></td>
            <td><b>Channel</b></td>
			<td><b>Date</b></td>
        </tr>
    </thead>
    <tbody>
    @foreach($mytransactions as $transaction) <?php 
    //var_dump($transaction);exit;
    ?>
		
        <tr>
			<td>{{ $i-- }}</td>
			<td>{{ $transaction->firstname . " " . $transaction->lastname }}</td>
			<td>{{ $transaction->phone }}</td>
			<td> <?php 
    $hLink = URL::route('campaigns_grid_info', array('campaign' => Helpers::getUniqueCampaignID($transaction->campaign_id)));
    ?>
				{{
					HTML::link($hLink, strtoupper(Helpers::getCampaignID(Helpers::getUniqueCampaignID($transaction->campaign_id), true)), array("class" => ""));
				}}
			</td>
            <td>{{ $transaction->order_id }}</td>
            <td>{{ $transaction->trx_id }}</td>
            <td>{{ number_format($transaction->amount,2) }}</td>
            <td>{{ $transaction->currency }}</td>
            <td>{{ $transaction->channel }}</td>
            <td>{{ $transaction->updated_at }}</td>
        </tr>
    @endforeach
    </tbody>
</table>	
開發者ID:centaurustech,項目名稱:bmradi,代碼行數:31,代碼來源:template_trans.blade.php


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