51 protected $controllerId;
61 protected $uniqueLayoutId;
82 return 'ModelDetails';
91 return 'ReportsModule';
109 assert(
'is_array($viewData) || $viewData == null');
110 assert(
'isset($params["relationModuleId"]) && $params["relationModuleId"] == "reports"');
111 assert(
'isset($params["relationModel"]) && get_class($params["relationModel"]) == "Report"');
112 assert(
'isset($params["portletId"])');
113 assert(
'is_string($uniqueLayoutId)');
114 $this->moduleId = $params[
'relationModuleId'];
115 $this->viewData = $viewData;
116 $this->params = $params;
117 $this->uniqueLayoutId = $uniqueLayoutId;
120 public function getPortletParams()
125 public function renderPortletHeadContent()
143 return 'defaultPortlet/myListDetails';
151 return array_merge(GetUtil::getData(), array(
'portletId' => $this->params[
'portletId']));
161 return Yii::app()->createUrl(
'/' . $this->moduleId .
'/defaultPortlet/details',
162 array_merge(GetUtil::getData(), array(
163 'portletId' => $this->params[
'portletId'],
164 'uniqueLayoutId' => $this->uniqueLayoutId,
165 'id' => $this->getSavedReportId(),
166 'runReport' =>
true)));
169 protected function getSavedReportId()
171 return $this->params[
'relationModel']->getId();
181 return Yii::app()->createUrl(
'/' . $this->moduleId .
'/default/details',
182 array(
'id' => $this->getSavedReportId()));
190 $containerId = $this->getRefreshLinkContainerId();
193 'beforeSend' =>
'function ( xhr ) {jQuery("#' . $containerId .
194 '").html("");$(this).makeLargeLoadingSpinner(true, "#' . $containerId .
'");}',
195 'success' =>
'js:function(data)
197 $("#' . $containerId .
'").parent().html(data);
199 array(
'id' => $this->getRefreshLinkId(),
200 'class' =>
'refreshPortletLink',
201 'style' =>
"display:none;",
203 'namespace' =>
'refresh'));
206 protected function getRefreshLinkContainerId()
208 return get_class($this);
211 protected function getRefreshLinkId()
213 return 'refreshPortletLink-' . $this->getRefreshLinkContainerId();
static getPortletDescription()
static ajaxLink($text, $url, $ajaxOptions=array(), $htmlOptions=array())
resolveAndGetPaginationRoute()
static getPortletRulesType()
resolveAndGetPaginationParams()
static canUserConfigure()
__construct($viewData, $params, $uniqueLayoutId)
static getModuleClassName()