Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 function get()
 {
     $data = parent::get();
     if ($this->isShared() && $this->objectData['classification'] === CalDavBackend::CLASSIFICATION_CONFIDENTIAL) {
         return $this->createConfidentialObject($data);
     }
     return $data;
 }
Exemplo n.º 2
0
 function testGetRefetch()
 {
     $backend = new Backend\Mock(array(), array(1 => array('foo' => array('calendardata' => 'foo', 'uri' => 'foo'))));
     $obj = new CalendarObject($backend, array(), array('calendarid' => 1, 'uri' => 'foo'));
     $this->assertEquals('foo', $obj->get());
 }