Example #1
0
 /**
  * Every time getNext() is called, a new object will be parsed, until we
  * hit the end of the stream.
  *
  * When the end is reached, null will be returned.
  *
  * @return SabreForRainLoop\VObject\Component|null
  */
 public function getNext()
 {
     try {
         $object = $this->parser->parse();
     } catch (VObject\EofException $e) {
         return null;
     }
     return $object;
 }
Example #2
0
 /**
  * Sets a raw value coming from a mimedir (iCalendar/vCard) file.
  *
  * This has been 'unfolded', so only 1 line will be passed. Unescaping is
  * not yet done, but parameters are not included.
  *
  * @param string $val
  * @return void
  */
 public function setRawMimeDirValue($val)
 {
     $this->setValue(MimeDir::unescapeValue($val, $this->delimiter));
 }