public function actionModalList() { $modalListLinkProvider = new SelectFromRelatedEditModalListLinkProvider($_GET['modalTransferInformation']['sourceIdFieldId'], $_GET['modalTransferInformation']['sourceNameFieldId'], $_GET['modalTransferInformation']['modalId']); echo ModalSearchListControllerUtil::setAjaxModeAndRenderModalSearchList($this, $modalListLinkProvider); }
/** * Renders modal list for the shared calendars for the user. */ public function actionModalList() { $modalListLinkProvider = new SelectFromSharedCalendarsModalListLinkProvider(CalendarUtil::getModalContainerId(), 'shared-calendars-list'); echo ModalSearchListControllerUtil::setAjaxModeAndRenderModalSearchList($this, $modalListLinkProvider, 'SharedCalendersStateMetadataAdapter'); }
/** * In a detailview, if you click the 'select' link from a sub view, this action is called. It will bring a modal * search/list view to select a model from. * @param string $portletId * @param string $uniqueLayoutId * @param string $relationAttributeName * @param string $relationModelId * @param string $relationModuleId * @param string $pageTitle */ public function actionSelectFromRelatedList($portletId, $uniqueLayoutId, $relationAttributeName, $relationModelId, $relationModuleId, $stateMetadataAdapterClassName = null) { $portlet = Portlet::getById((int) $portletId); $modalListLinkProvider = new SelectFromRelatedListModalListLinkProvider($relationAttributeName, (int) $relationModelId, $relationModuleId, $portlet->getUniquePortletPageId(), $uniqueLayoutId, (int) $portlet->id, $this->getModule()->getId()); echo ModalSearchListControllerUtil::setAjaxModeAndRenderModalSearchList($this, $modalListLinkProvider, $stateMetadataAdapterClassName); }
public function actionModalListAllContacts() { $modalListLinkProvider = new SelectFromRelatedEditModalListLinkProvider($_GET['modalTransferInformation']['sourceIdFieldId'], $_GET['modalTransferInformation']['sourceNameFieldId'], $_GET['modalTransferInformation']['modalId']); $adapterName = ContactsUtil::resolveContactStateAdapterByModulesUserHasAccessTo('LeadsModule', 'ContactsModule', Yii::app()->user->userModel); if ($adapterName === false) { $messageView = new AccessFailureView(); $view = new AccessFailurePageView($messageView); echo $view->render(); Yii::app()->end(0, false); } echo ModalSearchListControllerUtil::setAjaxModeAndRenderModalSearchList($this, $modalListLinkProvider, $adapterName); }