コード例 #1
0
ファイル: FormatterTest.php プロジェクト: enko/ics
 /**
  * @covers Jsvrcek\ICS\Formatter::getFormattedUri
  */
 public function testGetFormattedUri()
 {
     $ce = new Formatter();
     $expected = 'mailto:test@example.com';
     $actual = $ce->getFormattedUri('*****@*****.**');
     $this->assertEquals($expected, $actual);
 }
コード例 #2
0
ファイル: Attendee.php プロジェクト: enko/ics
 /**
  * @param string $uri uri value for calendar users ex. '*****@*****.**'
  * @return \Jsvrcek\ICS\Model\Relationship\Attendee
  */
 public function addDelegatedFrom($uri)
 {
     $this->delegatedFrom[] = $this->formatter->getFormattedUri($uri);
     return $this;
 }
コード例 #3
0
ファイル: Organizer.php プロジェクト: enko/ics
 /**
  * RFC 5545 cal-address http://tools.ietf.org/html/rfc5545#section-3.3.3
  * @param string $uri
  * @return \Jsvrcek\ICS\Model\Relationship\Organizer
  */
 public function setValue($uri)
 {
     $this->value = $this->formatter->getFormattedUri($uri);
     return $this;
 }