Beispiel #1
0
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         $this->_JSSortableWidgetParams = array_merge(array('showHeader' => CPropertyValue::ensureBoolean($this->getWidgetProperty('showHeader')), 'compactResultsPerPage' => $this->compactResultsPerPage), parent::getJSSortableWidgetParams());
     }
     return $this->_JSSortableWidgetParams;
 }
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         $docId = self::getJSONProperty($this->profile, 'docId', $this->widgetType, $this->widgetUID);
         $this->_JSSortableWidgetParams = array_merge(parent::getJSSortableWidgetParams(), array('getItemsUrl' => Yii::app()->createUrl("/docs/docs/getItems"), 'getDocUrl' => Yii::app()->createUrl("/docs/docs/getItem"), 'enableResizing' => true, 'docId' => $docId));
     }
     return $this->_JSSortableWidgetParams;
 }
Beispiel #3
0
 /**
  * Magic getter.
  */
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         $this->_JSSortableWidgetParams = array_merge(parent::getJSSortableWidgetParams(), array('chartType' => $this->chartType));
     }
     return $this->_JSSortableWidgetParams;
 }
Beispiel #4
0
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         $this->_JSSortableWidgetParams = array_merge(parent::getJSSortableWidgetParams(), array('enableResizing' => true));
     }
     return $this->_JSSortableWidgetParams;
 }
Beispiel #5
0
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         if (!$this->hasError()) {
             $lastTweetId = $this->getLastTweetId();
         } else {
             $lastTweetId = null;
         }
         $this->_JSSortableWidgetParams = array_merge(parent::getJSSortableWidgetParams(), array('lastTweetId' => $lastTweetId));
     }
     return $this->_JSSortableWidgetParams;
 }
 protected function getJSSortableWidgetParams()
 {
     if (!isset($this->_JSSortableWidgetParams)) {
         $docId = self::getJSONProperty($this->profile, 'docId', $this->widgetType, $this->widgetUID);
         if ($docId !== '') {
             $doc = Docs::model()->findByPk($docId);
         } else {
             $docId = '';
         }
         if (isset($doc)) {
             $canEdit = $doc->checkEditPermissions() ? 1 : 0;
         } else {
             $canEdit = 0;
         }
         $this->_JSSortableWidgetParams = array_merge(parent::getJSSortableWidgetParams(), array('getItemsUrl' => Yii::app()->createUrl("/docs/docs/getItems"), 'getDocUrl' => Yii::app()->createUrl("/docs/docs/getItem"), 'enableResizing' => true, 'editDocUrl' => Yii::app()->controller->createAbsoluteUrl('/docs/docs/update'), 'docId' => $docId, 'canEdit' => $canEdit, 'checkEditPermissionUrl' => Yii::app()->controller->createUrl("/docs/docs/ajaxCheckEditPermission")));
     }
     return $this->_JSSortableWidgetParams;
 }