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


PHP ZurmoHtml::wrapAndRenderContinuumButtonContent方法代碼示例

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


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

示例1: renderMetricsContent

 /**
  * @param CampaignItem $campaignItem
  * @return string
  */
 protected static function renderMetricsContent(CampaignItem $campaignItem)
 {
     if (!ActionSecurityUtil::canCurrentUserPerformAction('Details', $campaignItem->emailMessage)) {
         return static::renderRestrictedEmailMessageAccessLink($campaignItem->emailMessage);
     }
     $isQueued = $campaignItem->isQueued();
     $isSkipped = $campaignItem->isSkipped();
     if ($isQueued) {
         $content = static::getQueuedContent();
     } elseif ($isSkipped) {
         $content = static::getSkippedContent();
     } elseif ($campaignItem->hasFailedToSend()) {
         $content = static::getSendFailedContent();
     } elseif ($campaignItem->isSent()) {
         $content = static::getSentContent();
         if ($campaignItem->hasAtLeastOneOpenActivity()) {
             $content .= static::getOpenedContent();
         }
         if ($campaignItem->hasAtLeastOneClickActivity()) {
             $content .= static::getClickedContent();
         }
         if ($campaignItem->hasAtLeastOneUnsubscribeActivity()) {
             $content .= static::getUnsubscribedContent();
         }
         if ($campaignItem->hasAtLeastOneBounceActivity()) {
             $content .= static::getBouncedContent();
         }
     } else {
         $content = static::getAwaitingQueueingContent();
     }
     return ZurmoHtml::wrapAndRenderContinuumButtonContent($content);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:36,代碼來源:CampaignItemSummaryListViewColumnAdapter.php

示例2: getStatusLabelAndVisualIdentifierContentByType

 public static function getStatusLabelAndVisualIdentifierContentByType($type)
 {
     assert('is_int($type)');
     $label = static::getStatusLabelByType($type);
     if ($type == self::UPDATED) {
         $stageContent = ' stage-true';
     } elseif ($type == self::CREATED) {
         $stageContent = ' stage-true';
     } elseif ($type == self::ERROR) {
         $stageContent = ' stage-false';
     }
     $content = ZurmoHtml::tag('div', array('class' => "import-item-stage-status" . $stageContent), '<i>●</i>' . ZurmoHtml::tag('span', array(), $label));
     return ZurmoHtml::wrapAndRenderContinuumButtonContent($content);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:14,代碼來源:ImportRowDataResultsUtil.php


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