/**
  * Set $freebusy_times variable
  *
  * @param array $times
  * @see getFBTimes()
  * @uses iCalFreeBusy::$freebusy_times
  * @uses getFBStatus()
  * @since 1.020 - 2002-12-24
  */
 private function setFBTimes($times = '')
 {
     if (is_array($times)) {
         foreach ($times as $timestamp => $data) {
             $values = (array) explode(',', $data);
             $minutes = (int) $values[0];
             $status = (string) $this->getFBStatus($values[1]);
             unset($values);
             $this->freebusy_times[parent::formatDate($timestamp)] = parent::formatDate($minutes) . ',' . $status;
         }
         // end foreach
     }
     // end if
 }
 /**
  * Sets the end for a recurring event
  *
  * 0 = never ending, integer < 4 numbers = number of times, integer >= 4 enddate
  *
  * @param int $freq
  * @see getRecEnd()
  * @uses iCalToDo::$rec_end
  * @since 1.010 - 2002-10-26
  */
 private function setRecEnd($freq = '')
 {
     if (strlen(trim($freq)) < 1) {
         $this->rec_end = 0;
     } elseif (is_int($freq) && strlen(trim($freq)) < 4) {
         $this->rec_end = $freq;
     } else {
         $this->rec_end = (string) parent::formatDate($freq);
     }
     // end if
 }
 /**
  * Set $created variable
  *
  * @param int $timestamp
  * @see getCreated()
  * @uses iCalJournal::$created
  * @uses iCalJournal::$created_ts
  * @uses setCreatedTS()
  */
 private function setCreated($timestamp = 0)
 {
     $this->setCreatedTS($timestamp);
     $this->created = (string) parent::formatDate($this->created_ts);
 }