• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ModalView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ModalView的典型用法代码示例。如果您正苦于以下问题:PHP ModalView类的具体用法?PHP ModalView怎么用?PHP ModalView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ModalView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: renderList

 /**
  * @return rendered content from view as string.
  */
 public static function renderList(CController $controller, $dataProvider)
 {
     assert('$dataProvider instanceof RedBeanModelDataProvider');
     $auditEventsListView = new AuditEventsModalListView($controller->getId(), $controller->getModule()->getId(), 'AuditEvent', $dataProvider, 'modal');
     $view = new ModalView($controller, $auditEventsListView);
     return $view->render();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:10,代码来源:AuditEventsListControllerUtil.php


示例2: preFilter

 protected function preFilter($filterChain)
 {
     $sendGridPluginEnabled = (bool) ZurmoConfigurationUtil::getByModuleName('SendGridModule', 'enableSendgrid');
     try {
         if ($sendGridPluginEnabled) {
             SendGridEmailAccount::getByUserAndName(Yii::app()->user->userModel, null);
         } else {
             EmailAccount::getByUserAndName(Yii::app()->user->userModel);
         }
     } catch (NotFoundException $e) {
         $redirectUrl = Yii::app()->request->getParam('redirectUrl');
         if ($sendGridPluginEnabled) {
             try {
                 EmailAccount::getByUserAndName(Yii::app()->user->userModel);
             } catch (NotFoundException $ex) {
                 $messageView = new NoUserEmailConfigurationYetView($redirectUrl);
                 $view = new ModalView($this->controller, $messageView);
                 Yii::app()->getClientScript()->setToAjaxMode();
                 echo $view->render();
                 return false;
             }
         } else {
             $messageView = new NoUserEmailConfigurationYetView($redirectUrl);
             $view = new ModalView($this->controller, $messageView);
             Yii::app()->getClientScript()->setToAjaxMode();
             echo $view->render();
             return false;
         }
     }
     return true;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:31,代码来源:UserEmailConfigurationCheckControllerFilter.php


示例3: renderList

 /**
  * @return rendered content from view as string.
  */
 public static function renderList(CController $controller, $dataProvider, $action)
 {
     assert('$dataProvider instanceof RedBeanModelDataProvider');
     $modalListLinkProvider = new UserDetailsModalListLinkProvider('users', 'default', 'details');
     $usersListView = new UsersByModelModalListView($controller->getId(), $controller->getModule()->getId(), $action, 'User', $modalListLinkProvider, $dataProvider, 'modal');
     $view = new ModalView($controller, $usersListView);
     return $view->render();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:11,代码来源:UsersByModelModalListControllerUtil.php


示例4: actionModalConfigEdit

 /**
  * Called using Ajax. Renders a modal popup
  * of the portlet's configuration view.
  * Also called on 'save' of the modal popup form
  * in order to validate form.
  */
 public function actionModalConfigEdit()
 {
     if (isset($_POST['ajax']) && $_POST['ajax'] === 'modal-edit-form') {
         $this->actionModalConfigValidate();
     }
     Yii::app()->getClientScript()->setToAjaxMode();
     $portlet = Portlet::getById(intval($_GET['portletId']));
     $portlet->params = array('modalConfigSaveAction' => 'modalConfigSave', 'controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId(), 'uniquePortletPageId' => $portlet->getUniquePortletPageId());
     $configurableView = $portlet->getView()->getConfigurationView();
     $view = new ModalView($this, $configurableView);
     echo $view->render();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:18,代码来源:PortletController.php


示例5: preFilter

 protected function preFilter($filterChain)
 {
     try {
         EmailAccount::getByUserAndName(Yii::app()->user->userModel);
     } catch (NotFoundException $e) {
         $redirectUrl = Yii::app()->request->getParam('redirectUrl');
         $messageView = new NoUserEmailConfigurationYetView($redirectUrl);
         $view = new ModalView($this->controller, $messageView);
         Yii::app()->getClientScript()->setToAjaxMode();
         echo $view->render();
         return false;
     }
     return true;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:14,代码来源:UserEmailConfigurationCheckControllerFilter.php


示例6: 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


示例7: actionDaysMeetingsFromCalendarModalList

 public function actionDaysMeetingsFromCalendarModalList($stringTime, $redirectUrl)
 {
     if (isset($_GET['ownerOnly'])) {
         $ownerOnly = true;
     } else {
         $ownerOnly = false;
     }
     if (isset($_GET['relationModelId'])) {
         $relationModelClassName = $_GET['relationModelClassName'];
         $relationModel = $relationModelClassName::getById((int) $_GET['relationModelId']);
     } else {
         $relationModel = null;
     }
     Yii::app()->getClientScript()->setToAjaxMode();
     $meetingsView = new DaysMeetingsFromCalendarModalListView($this->getId(), $this->getModule()->getId(), $stringTime, $redirectUrl, $ownerOnly, $relationModel);
     $view = new ModalView($this, $meetingsView);
     echo $view->render();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:18,代码来源:DefaultController.php


示例8: 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


示例9: 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


示例10: 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


示例11: renderModalSearchList

 /**
  * @return rendered content from view as string.
  */
 protected static function renderModalSearchList(CController $controller, $modalListLinkProvider, $stateMetadataAdapterClassName = null)
 {
     assert('$modalListLinkProvider instanceof ModalListLinkProvider');
     $className = $controller->getModule()->getPluralCamelCasedName() . 'ModalSearchAndListView';
     $modelClassName = $controller->getModule()->getPrimaryModelName();
     $searchViewClassName = $className::getSearchViewClassName();
     if ($searchViewClassName::getModelForMetadataClassName() != null) {
         $formModelClassName = $searchViewClassName::getModelForMetadataClassName();
         $model = new $modelClassName(false);
         $searchModel = new $formModelClassName($model);
     } else {
         throw new NotSupportedException();
     }
     $pageSize = Yii::app()->pagination->resolveActiveForCurrentUserByType('modalListPageSize', get_class($controller->getModule()));
     $dataProvider = $controller->makeRedBeanDataProviderByDataCollection($searchModel, $pageSize, $stateMetadataAdapterClassName);
     $searchAndListView = new $className($controller->getId(), $controller->getModule()->getId(), $controller->getAction()->getId(), $modalListLinkProvider, $searchModel, $model, $dataProvider, 'modal');
     $view = new ModalView($controller, $searchAndListView);
     return $view->render();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:22,代码来源:ModalSearchListControllerUtil.php


示例12: actionJobLogsModalList

 public function actionJobLogsModalList($type)
 {
     assert('is_string($type) && $type != ""');
     $jobClassName = $type . 'Job';
     $searchAttributeData = array();
     $searchAttributeData['clauses'] = array(1 => array('attributeName' => 'type', 'operatorType' => 'equals', 'value' => $type));
     $searchAttributeData['structure'] = '1';
     $pageSize = Yii::app()->pagination->resolveActiveForCurrentUserByType('subListPageSize');
     $dataProvider = new RedBeanModelDataProvider('JobLog', 'startDateTime', true, $searchAttributeData, array('pagination' => array('pageSize' => $pageSize)));
     Yii::app()->getClientScript()->setToAjaxMode();
     $jobLogsListView = new JobLogsModalListView($this->getId(), $this->getModule()->getId(), 'JobLog', $dataProvider, 'modal');
     $view = new ModalView($this, $jobLogsListView);
     echo $view->render();
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:14,代码来源:DefaultController.php


示例13: 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


示例14: 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


示例15: actionAddList

 public function actionAddList()
 {
     Yii::app()->getClientScript()->setToAjaxMode();
     $view = new ModalView($this, new DetailsPortletSelectionView($this->getId(), $this->getModule()->getId(), $_GET['modelId'], $_GET['uniqueLayoutId']));
     echo $view->render();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:6,代码来源:ZurmoPortletController.php


示例16: renderEmailAddressAsMailToOrModalLinkStringContent

 /**
  * Based on security, render an email address as a clickable link to a modal window or just a mailto: link
  * that will open the user's configured email client.
  * @param EmailMessage $emailAddress
  * @param RedBeanModel $model
  * @return string $content
  */
 public static function renderEmailAddressAsMailToOrModalLinkStringContent($emailAddress, RedBeanModel $model)
 {
     assert('is_string($emailAddress) || $emailAddress == null');
     if ($emailAddress == null) {
         return;
     }
     $userCanAccess = RightsUtil::canUserAccessModule('EmailMessagesModule', Yii::app()->user->userModel);
     $userCanCreate = RightsUtil::doesUserHaveAllowByRightName('EmailMessagesModule', EmailMessagesModule::RIGHT_CREATE_EMAIL_MESSAGES, Yii::app()->user->userModel);
     if (!$userCanAccess || !$userCanCreate) {
         $showLink = false;
     } else {
         $showLink = true;
     }
     if ($showLink && !$model instanceof Account) {
         $url = Yii::app()->createUrl('/emailMessages/default/createEmailMessage', array('toAddress' => $emailAddress, 'relatedId' => $model->id, 'relatedModelClassName' => get_class($model), 'redirectUrl' => Yii::app()->request->getRequestUri()));
         $modalAjaxOptions = ModalView::getAjaxOptionsForModalLink(Zurmo::t('EmailMessagesModule', 'Compose Email'), 'modalContainer', 'auto', 800, array('my' => 'top', 'at' => 'bottom', 'of' => '#HeaderView'));
         $content = ZurmoHtml::ajaxLink($emailAddress, $url, $modalAjaxOptions);
     } else {
         $content = Yii::app()->format->email($emailAddress);
     }
     return $content;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:29,代码来源:EmailMessageUtil.php


示例17: 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


示例18: resolveAjaxOptionsForSelectList

 protected static function resolveAjaxOptionsForSelectList()
 {
     $title = Zurmo::t('MarketingListsModule', 'Marketing List Search', LabelUtil::getTranslationParamsForAllModules());
     return ModalView::getAjaxOptionsForModalLink($title);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:5,代码来源:MarketingListsForContactRelatedListView.php


示例19: renderModalList

 protected function renderModalList($modalViewName, $pageTitle)
 {
     $rolesModalTreeView = new $modalViewName($this->getId(), $this->getModule()->getId(), $_GET['modalTransferInformation']['sourceModelId'], Role::getAll('name'), $_GET['modalTransferInformation']['sourceIdFieldId'], $_GET['modalTransferInformation']['sourceNameFieldId'], $_GET['modalTransferInformation']['modalId']);
     Yii::app()->getClientScript()->setToAjaxMode();
     $view = new ModalView($this, $rolesModalTreeView);
     return $view->render();
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:7,代码来源:RoleController.php


示例20: resolveAjaxOptionsForEditLink

 protected static function resolveAjaxOptionsForEditLink()
 {
     $title = Yii::t('Default', 'Edit Portlet');
     return ModalView::getAjaxOptionsForModalLink($title);
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:5,代码来源:JuiPortlets.php



注:本文中的ModalView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Model类代码示例发布时间:2022-05-23
下一篇:
PHP ModUtil类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap