当前位置: 首页>>代码示例>>PHP>>正文


PHP X2Widget::getJSClassParams方法代码示例

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


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

示例1: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('setSortOrderUrl' => Yii::app()->controller->createUrl('/profile/setWidgetOrder'), 'showWidgetContentsUrl' => Yii::app()->controller->createUrl('/profile/view', array('id' => 1))));
     }
     return $this->_JSClassParams;
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:7,代码来源:SortableWidgetManager.php

示例2: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('startDateAttribute' => $this->startDateAttribute, 'endDateAttribute' => $this->endDateAttribute, 'element' => '#' . $this->resolveId($this->id)), $this->options);
     }
     return $this->_JSClassParams;
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:7,代码来源:ActiveDateRangeInput.php

示例3: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('defaultWidth' => '65', 'columnWidth' => $this->columnWidthPercentage, 'editLayoutButton' => '#' . self::$editLayoutButtonId, 'container' => '#' . $this->namespace . '-layout-editor', 'draggable' => '#' . $this->namespace . '-section-1', 'mainColumnSelector' => $this->mainColumnSelector, 'responsiveCssSelector' => '#' . $this->responsiveCssId, 'minWidths' => array(50, 35), 'column1' => array('#RecordViewWidgetManagerwidgets-container-2', '#main-column', '#' . $this->namespace . '-section-1'), 'column2' => array('#RecordViewWidgetManagerwidgets-container'), 'miscSettingsUrl' => Yii::app()->controller->createUrl('/profile/saveMiscLayoutSetting'), 'settingName' => $this->miscLayoutSettingsKey, 'dimensions' => array('singleColumnThresholdNoWidgets' => $this->singleColumnThresholdNoWidgets, 'singleColumnThreshold' => $this->singleColumnThreshold, 'extraContentWidth' => $this->extraContentWidth, 'rightWidgetWidth' => $this->rightWidgetWidth, 'formLayoutWidthThreshold' => $this->formLayoutWidthThreshold)));
     }
     return $this->_JSClassParams;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:7,代码来源:RecordViewLayoutManager.php

示例4: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $title = X2Model::getModelTitle(get_class($this->model), true);
         $targetClass = $this->targetClass;
         $behavior = $this->model->asa('X2ModelConversionBehavior');
         $conversionFailed = $behavior->conversionFailed && $behavior->errorModel !== null && get_class($behavior->errorModel) === $this->targetClass;
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('buttonSelector' => $this->buttonSelector, 'translations' => array('conversionError' => Yii::t('app', '{model} conversion failed.', array('{model}' => $title)), 'conversionWarning' => Yii::t('app', '{model} Conversion Warning', array('{model}' => $title)), 'convertAnyway' => Yii::t('app', 'Convert Anyway'), 'Cancel' => Yii::t('app', 'Cancel')), 'targetClass' => $this->targetClass, 'modelId' => $this->model->id, 'conversionFailed' => $conversionFailed, 'conversionIncompatibilityWarnings' => $this->model->getConversionIncompatibilityWarnings($this->targetClass), 'errorSummary' => $conversionFailed ? "<div class='form'>" . CHtml::errorSummary($this->model->asa('X2ModelConversionBehavior')->errorModel, Yii::t('app', '{model} conversion failed.', array('{model}' => $title))) . "</div>" : ''));
     }
     return $this->_JSClassParams;
 }
开发者ID:keyeMyria,项目名称:CRM,代码行数:11,代码来源:X2ModelConversionWidget.php

示例5: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('tabId' => $this->tabId, 'translations' => array('beforeSubmit' => Yii::t('actions', 'Please enter a description.'), 'startDateError' => Yii::t('actions', 'Please enter a start date.'), 'endDateError' => Yii::t('actions', 'Please enter an end date.'))));
     }
     return $this->_JSClassParams;
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:7,代码来源:PublisherTab.php

示例6: getJSClassParams

 public function getJSClassParams()
 {
     $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('iframeSrc' => Yii::app()->createExternalUrl($this->url), 'externalAbsoluteBaseUrl' => Yii::app()->getExternalAbsoluteBaseUrl(), 'saveUrl' => Yii::app()->createAbsoluteUrl($this->saveUrl), 'savedForms' => $this->formAttrs, 'deleteFormUrl' => Yii::app()->createAbsoluteUrl('/marketing/marketing/deleteWebForm'), 'fields' => array('fg', 'bgc', 'font', 'bs', 'bc'), 'colorfields' => array('fg', 'bgc', 'bc')));
     return $this->_JSClassParams;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:5,代码来源:WebFormDesigner.php

示例7: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $selectedTab = $this->tabs[0]->tabId;
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('translations' => array(), 'initTabId' => $selectedTab, 'publisherCreateUrl' => Yii::app()->controller->createUrl('/actions/actions/publisherCreate'), 'isCalendar' => $this->calendar, 'renderTabs' => $this->renderTabs));
     }
     return $this->_JSClassParams;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:8,代码来源:Publisher.php

示例8: getJSClassParams

 public function getJSClassParams()
 {
     return array_merge(parent::getJSClassParams(), array('modelId' => $this->model->id, 'modelName' => $this->modelName));
 }
开发者ID:shuvro35,项目名称:X2CRM,代码行数:4,代码来源:RecordView.php

示例9: getJSClassParams

 public function getJSClassParams()
 {
     return array_merge(parent::getJSClassParams(), array('translations' => array('defaultTemplateDialogTitle' => Yii::t('app', 'Set a Default Email Template'), 'Cancel' => Yii::t('app', 'Cancel'), 'Save' => Yii::t('app', 'Save'), 'New Message' => Yii::t('app', 'New Message')), 'disableTemplates' => $this->disableTemplates, 'saveDefaultTemplateUrl' => Yii::app()->controller->createUrl('/profile/profile/ajaxSaveDefaultEmailTemplate'), 'tmpUploadUrl' => Yii::app()->createUrl('/site/tmpUpload'), 'rmTmpUploadUrl' => Yii::app()->createUrl('/site/removeTmpUpload'), 'type' => $this->type, 'enableResizability' => $this->enableResizability));
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:4,代码来源:InlineEmailForm.php

示例10: getJSClassParams

 public function getJSClassParams()
 {
     $totalEmails = count($this->listItems) + $this->sentCount;
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('sentCount' => $this->sentCount, 'totalEmails' => $totalEmails, 'listItems' => $this->listItems, 'sendUrl' => Yii::app()->controller->createUrl('/marketing/marketing/mailIndividual'), 'campaignId' => $this->campaign->id, 'paused' => !(isset($_GET['launch']) && $_GET['launch'])));
     }
     return $this->_JSClassParams;
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:8,代码来源:EmailProgressControl.php

示例11: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('url' => $this->url, 'id' => $this->id, 'mediaParams' => $this->mediaParams, 'viewParams' => $this->viewParams, 'acceptedFiles' => $this->acceptedFiles));
     }
     return $this->_JSClassParams;
 }
开发者ID:shuvro35,项目名称:X2CRM,代码行数:7,代码来源:FileUploader.php

示例12: getJSClassParams

 public function getJSClassParams()
 {
     if (!isset($this->_JSClassParams)) {
         $this->_JSClassParams = array_merge(parent::getJSClassParams(), array('url' => $this->url, 'id' => $this->id, 'mediaParams' => $this->mediaParams, 'viewParams' => $this->viewParams, 'acceptedFiles' => $this->acceptedFiles, 'maxFileSize' => floor(AppFileUtil::sizeToMb(ini_get('upload_max_filesize')))));
     }
     return $this->_JSClassParams;
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:7,代码来源:FileUploader.php

示例13: getJSClassParams

 /**
  * @return arguments passed to $pillBoxJSClass constructor
  */
 public function getJSClassParams()
 {
     return array_merge(parent::getJSClassParams(), array('name' => $this->name, 'options' => $this->options, 'value' => $this->value, 'translations' => array_merge(array('helpText' => Yii::t('app', 'Click to add'), 'optionsHeader' => $this->optionsHeader, 'delete' => Yii::t('app', 'Delete')), $this->translations), 'pillClass' => $this->pillJSClass));
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:7,代码来源:X2PillBox.php


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