本文整理汇总了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
}
示例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;
}
示例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;
}
示例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']);
}
示例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']);
}
示例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;
}
示例7: resolveAjaxOptionsForSelectList
protected static function resolveAjaxOptionsForSelectList()
{
$singularTitle = ProductTemplate::getModelLabelByTypeAndLanguage('Singular');
$title = Zurmo::t('ProductTemplatesModule', $singularTitle . ' Search', LabelUtil::getTranslationParamsForAllModules());
return ModalView::getAjaxOptionsForModalLink($title);
}
示例8: resolveAjaxOptionsForSelectList
protected static function resolveAjaxOptionsForSelectList()
{
$title = Zurmo::t('MarketingListsModule', 'Marketing List Search', LabelUtil::getTranslationParamsForAllModules());
return ModalView::getAjaxOptionsForModalLink($title);
}
示例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);
}
示例10: resolveAjaxOptionsForAddPortlet
/**
* @return array
*/
protected static function resolveAjaxOptionsForAddPortlet()
{
$title = Zurmo::t('HomeModule', 'Add Portlet');
return ModalView::getAjaxOptionsForModalLink($title);
}
示例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'));
}
示例12: resolveAjaxOptionsForSelectingModel
protected function resolveAjaxOptionsForSelectingModel($formId)
{
assert('is_string($formId)');
$title = $this->getModalTitleForSelectingModel();
return ModalView::getAjaxOptionsForModalLink($title, $this->getModalContainerId());
}
示例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 = "''");
}
示例14: resolveAjaxOptionsForEditLink
protected static function resolveAjaxOptionsForEditLink()
{
$title = Yii::t('Default', 'Edit Portlet');
return ModalView::getAjaxOptionsForModalLink($title);
}
示例15: resolveOptionsForSelectList
protected static function resolveOptionsForSelectList()
{
$title = 'AgreementProduct';
return ModalView::getAjaxOptionsForModalLink($title);
}