예제 #1
0
 /**
  * @inheritdoc
  */
 function get()
 {
     $data = parent::get();
     if ($this->isShared() && $this->objectData['classification'] === CalDavBackend::CLASSIFICATION_CONFIDENTIAL) {
         return $this->createConfidentialObject($data);
     }
     return $data;
 }
예제 #2
0
 function testGetSize2()
 {
     $objectInfo = array('uri' => 'foo', 'calendarid' => 1, 'size' => 4);
     $backend = new Backend\Mock(array(), array());
     $obj = new CalendarObject($backend, array(), $objectInfo);
     $this->assertEquals(4, $obj->getSize());
 }