当前位置: 首页>>代码示例>>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;未经允许,请勿转载。