本文整理汇总了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'));
}
}
示例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;
}
示例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>