예제 #1
0
 /**
  * @return ParameterBag
  */
 protected function buildParameterBag()
 {
     $parameterBag = new ParameterBag();
     $parameterBag->setParam('FREQ', $this->freq);
     if (null !== $this->interval) {
         $parameterBag->setParam('INTERVAL', $this->interval);
     }
     if (null !== $this->count) {
         $parameterBag->setParam('COUNT', $this->count);
     }
     return $parameterBag;
 }
예제 #2
0
 /**
  * @return ParameterBag
  */
 protected function buildParameterBag()
 {
     $parameterBag = new ParameterBag();
     $parameterBag->setParam('FREQ', $this->freq);
     if (null !== $this->interval) {
         $parameterBag->setParam('INTERVAL', $this->interval);
     }
     if (null !== $this->count) {
         $parameterBag->setParam('COUNT', $this->count);
     }
     if (null != $this->until) {
         $parameterBag->setParam('UNTIL', $this->until->format('Ymd\\THis\\Z'));
     }
     if (null !== $this->wkst) {
         $parameterBag->setParam('WKST', $this->wkst);
     }
     if (null !== $this->byMonth) {
         $parameterBag->setParam('BYMONTH', $this->byMonth);
     }
     if (null !== $this->byWeekNo) {
         $parameterBag->setParam('BYWEEKNO', $this->byWeekNo);
     }
     if (null !== $this->byYearDay) {
         $parameterBag->setParam('BYYEARDAY', $this->byYearDay);
     }
     if (null !== $this->byMonthDay) {
         $parameterBag->setParam('BYMONTHDAY', $this->byMonthDay);
     }
     if (null !== $this->byDay) {
         $parameterBag->setParam('BYDAY', $this->byDay);
     }
     if (null !== $this->byHour) {
         $parameterBag->setParam('BYHOUR', $this->byHour);
     }
     if (null !== $this->byMinute) {
         $parameterBag->setParam('BYMINUTE', $this->byMinute);
     }
     if (null !== $this->bySecond) {
         $parameterBag->setParam('BYSECOND', $this->bySecond);
     }
     return $parameterBag;
 }
예제 #3
0
파일: Property.php 프로젝트: janhohner/iCal
 /**
  * @param string $name
  * @param mixed  $value
  *
  * @return $this
  */
 public function setParam($name, $value)
 {
     $this->parameterBag->setParam($name, $value);
     return $this;
 }