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