Пример #1
0
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 1.8
  *
  * @param $definitions array of IParamDefinition
  *
  * @return array of IParamDefinition|array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $params['class'] = array('message' => 'srf-paramdesc-class', 'default' => '');
     $params['theme'] = array('message' => 'srf-paramdesc-theme', 'default' => 'bootstrap', 'values' => array('bootstrap'));
     return $params;
 }
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 1.8
  *
  * @param $definitions array of IParamDefinition
  *
  * @return array of IParamDefinition|array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $params['defaultview'] = array('message' => 'srf-paramdesc-calendardefaultview', 'default' => 'month', 'values' => array('month', 'basicweek', 'basicday', 'agendaweek', 'agendaday'));
     $params['firstday'] = array('message' => 'srf-paramdesc-calendarfirstday', 'default' => 'Sunday', 'values' => array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"));
     $params['start'] = array('message' => 'srf-paramdesc-calendarstart', 'default' => 'current', 'values' => array('current', 'earliest', 'latest'));
     $params['legend'] = array('message' => 'srf-paramdesc-calendarlegend', 'default' => 'none', 'values' => array('none', 'top', 'bottom', 'tooltip', 'pane'));
     $params['dayview'] = array('type' => 'boolean', 'message' => 'srf-paramdesc-dayview', 'default' => false);
     $params['class'] = array('message' => 'srf-paramdesc-class', 'default' => '');
     $params['theme'] = array('message' => 'srf-paramdesc-theme', 'default' => 'basic', 'values' => array('basic', 'vector'));
     return $params;
 }