コード例 #1
0
 /**
  * @return RecurringEvents
  */
 private function newInstance(array $params)
 {
     $parameters = new ParserParameterFormatter($params);
     $instance = new RecurringEvents($parameters->toArray());
     $instance->setDefaultNumRecurringEvents(10);
     $instance->setMaxNumRecurringEvents(50);
     return $instance;
 }
コード例 #2
0
 /**
  * @since  1.9
  *
  * @return RecurringEvents
  */
 private function newInstance(array $params)
 {
     $parameters = new ParserParameterFormatter($params);
     $settings = $this->newSettings(array('smwgDefaultNumRecurringEvents' => 10, 'smwgMaxNumRecurringEvents' => 50));
     return new RecurringEvents($parameters->toArray(), $settings);
 }