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


PHP ModalView::getAjaxOptionsForModalLink方法代碼示例

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


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

示例1: resolveAjaxOptionsForModalView

 /**
  * Resolve ajax options for modal view
  * @param string $linkId
  * @return string
  */
 protected function resolveAjaxOptionsForModalView($linkId)
 {
     assert('is_string($linkId)');
     $title = $this->getCreateAccountLabel();
     return ModalView::getAjaxOptionsForModalLink($title, $this->getModalContainerId(), 'auto', 600, 'center top+25', $class = "'task-dialog'");
     // Not Coding Standard
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:12,代碼來源:AccountSelectOrCreateElement.php

示例2: resolveAjaxOptionsForTestLdapConnection

 protected static function resolveAjaxOptionsForTestLdapConnection($formId)
 {
     assert('is_string($formId)');
     $title = Zurmo::t('ZurmoModule', 'Test Connection Results');
     $ajaxOptions = ModalView::getAjaxOptionsForModalLink($title);
     $ajaxOptions['type'] = 'POST';
     $ajaxOptions['data'] = 'js:$("#' . $formId . '").serialize()';
     return $ajaxOptions;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:9,代碼來源:TestLdapConnectionElement.php

示例3: resolveAjaxOptionsForTestEmailSettings

 protected static function resolveAjaxOptionsForTestEmailSettings($formId)
 {
     assert('is_string($formId)');
     $title = Zurmo::t('EmailMessagesModule', 'Test Message Results');
     $ajaxOptions = ModalView::getAjaxOptionsForModalLink($title);
     $ajaxOptions['type'] = 'POST';
     $ajaxOptions['data'] = 'js:$("#' . $formId . '").serialize()';
     return $ajaxOptions;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:9,代碼來源:SendATestEmailToElement.php

示例4: getAjaxOptions

 protected function getAjaxOptions()
 {
     $parentAjaxOptions = parent::getAjaxOptions();
     $modalViewAjaxOptions = ModalView::getAjaxOptionsForModalLink($this->getDefaultLabel());
     if (!isset($this->params['ajaxOptions'])) {
         $this->params['ajaxOptions'] = array();
     }
     return CMap::mergeArray($parentAjaxOptions, $modalViewAjaxOptions, $this->params['ajaxOptions']);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:9,代碼來源:MergeTagGuideAjaxLinkActionElement.php

示例5: getAjaxOptions

 protected function getAjaxOptions()
 {
     $parentAjaxOptions = parent::getAjaxOptions();
     $modalViewAjaxOptions = ModalView::getAjaxOptionsForModalLink($this->getDefaultLabel());
     if (!isset($this->params['ajaxOptions'])) {
         $selector = $this->params['selector'];
         $isHtmlContent = $this->params['isHtmlContent'];
         $this->params['ajaxOptions'] = array('data' => array('isHtmlContent' => $isHtmlContent, 'content' => new CJavaScriptExpression('
                                                                 function()
                                                                  {
                                                                     return ' . $selector . ';
                                                                  }')));
     }
     return CMap::mergeArray($parentAjaxOptions, $modalViewAjaxOptions, $this->params['ajaxOptions']);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:15,代碼來源:AutoresponderOrCampaignFooterTextPreviewElement.php

示例6: renderControlNonEditable

 protected function renderControlNonEditable()
 {
     $avatarImage = $this->model->getAvatarImage(110);
     $content = '<div class="gravatar-container">';
     if (Yii::app()->user->userModel->id == $this->model->id || RightsUtil::canUserAccessModule('UsersModule', Yii::app()->user->userModel)) {
         $span = ZurmoHtml::tag('span', array('id' => 'profile-picture-tooltip'), Zurmo::t('UsersModule', 'Change Profile Picture'), true);
         $url = Yii::app()->createUrl('/users/default/changeAvatar', array('id' => $this->model->id));
         $modalTitle = ModalView::getAjaxOptionsForModalLink(Zurmo::t('UsersModule', 'Change Profile Picture') . ": " . strval($this->model));
         $content .= ZurmoHtml::ajaxLink($span . $avatarImage, $url, $modalTitle);
     } else {
         $content .= $avatarImage;
     }
     $content .= '</div>';
     return $content;
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:15,代碼來源:AvatarTypeAndEmailElement.php

示例7: resolveAjaxOptionsForSelectList

 protected static function resolveAjaxOptionsForSelectList()
 {
     $singularTitle = ProductTemplate::getModelLabelByTypeAndLanguage('Singular');
     $title = Zurmo::t('ProductTemplatesModule', $singularTitle . ' Search', LabelUtil::getTranslationParamsForAllModules());
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:sandeep1027,項目名稱:zurmo_,代碼行數:6,代碼來源:ProductsForOpportunityRelatedListView.php

示例8: resolveAjaxOptionsForSelectList

 protected static function resolveAjaxOptionsForSelectList()
 {
     $title = Zurmo::t('MarketingListsModule', 'Marketing List Search', LabelUtil::getTranslationParamsForAllModules());
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:5,代碼來源:MarketingListsForContactRelatedListView.php

示例9: getAjaxOptions

 /**
  * Utilized when auditEventsModalLink is used during mobile select option render
  * @return array
  */
 protected function getAjaxOptions()
 {
     $title = Zurmo::t('ZurmoModule', 'Audit Trail');
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:9,代碼來源:AuditEventsModalListLinkActionElement.php

示例10: resolveAjaxOptionsForAddPortlet

 /**
  * @return array
  */
 protected static function resolveAjaxOptionsForAddPortlet()
 {
     $title = Zurmo::t('HomeModule', 'Add Portlet');
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:8,代碼來源:ConfigurableDetailsAndRelationsView.php

示例11: getAjaxLinkOptions

 protected function getAjaxLinkOptions()
 {
     $title = Zurmo::t('EmailMessagesModule', 'Email');
     return ModalView::getAjaxOptionsForModalLink(Zurmo::t('EmailMessagesModule', 'Compose Email'), 'modalContainer', 'auto', 800, array('my' => 'top', 'at' => 'bottom', 'of' => '#HeaderView'));
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:5,代碼來源:CreateEmailMessageFromRelatedListLinkActionElement.php

示例12: resolveAjaxOptionsForSelectingModel

 protected function resolveAjaxOptionsForSelectingModel($formId)
 {
     assert('is_string($formId)');
     $title = $this->getModalTitleForSelectingModel();
     return ModalView::getAjaxOptionsForModalLink($title, $this->getModalContainerId());
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:6,代碼來源:ModelElement.php

示例13: resolveAjaxOptionsForModalView

 /**
  * @return array
  */
 public static function resolveAjaxOptionsForModalView()
 {
     $title = Zurmo::t('Calendarsmodule', 'Shared Calendars');
     return ModalView::getAjaxOptionsForModalLink($title, self::getModalContainerId(), 'auto', 600, 'center top+25', $class = "''");
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:8,代碼來源:CalendarUtil.php

示例14: resolveAjaxOptionsForEditLink

 protected static function resolveAjaxOptionsForEditLink()
 {
     $title = Yii::t('Default', 'Edit Portlet');
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:5,代碼來源:JuiPortlets.php

示例15: resolveOptionsForSelectList

 protected static function resolveOptionsForSelectList()
 {
     $title = 'AgreementProduct';
     return ModalView::getAjaxOptionsForModalLink($title);
 }
開發者ID:RamaKavanan,項目名稱:BaseVersion,代碼行數:5,代碼來源:AgreementProductsForAgreementRelatedListView.php


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