本文整理匯總了PHP中CClipWidget::endWidget方法的典型用法代碼示例。如果您正苦於以下問題:PHP CClipWidget::endWidget方法的具體用法?PHP CClipWidget::endWidget怎麽用?PHP CClipWidget::endWidget使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CClipWidget
的用法示例。
在下文中一共展示了CClipWidget::endWidget方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renderNotificationContent
protected static function renderNotificationContent($notification, $index, $modal)
{
$cClipWidget = new CClipWidget();
$cClipWidget->beginClip("ModalGameNotificationView");
$cClipWidget->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'ModalGameNotification' . $index, 'options' => array('autoOpen' => true, 'modal' => $modal, 'height' => 375, 'width' => 350, 'dialogClass' => 'ModalGameNotificationParent', 'position' => 'center', 'clearStyle' => true, 'open' => 'js:function(event, ui) {$(this).parent().children(".ui-dialog-titlebar").hide();}'), 'htmlOptions' => array('class' => 'ModalGameNotification')));
$adapter = new GameNotificationToModalContentAdapter($notification);
echo '<span class="badge-message">' . $adapter->getMessageContent() . '</span>' . '<div class="game-badge ' . $adapter->getIconCssName() . '"><div class="gloss"></div>' . '<strong class="badge-icon"></strong></div>';
echo '<br />';
echo static::resolveAndRenderPostingAndContinueLinksContent($notification, $index);
$cClipWidget->endWidget('zii.widgets.jui.CJuiDialog');
$cClipWidget->endClip();
return $cClipWidget->getController()->clips['ModalGameNotificationView'];
}