/** * @inheritdoc */ function get() { $data = parent::get(); if ($this->isShared() && $this->objectData['classification'] === CalDavBackend::CLASSIFICATION_CONFIDENTIAL) { return $this->createConfidentialObject($data); } return $data; }
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()); }