Copyright 2010-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
/** * Initialize the list of defaults. */ private function _initDefaults() { if (!$this->_defaults->isComplete()) { $namespace = $this->_driver->getNamespace(); foreach ($this->listFolderTypeAnnotations() as $folder => $annotation) { if ($annotation->isDefault()) { $this->_defaults->rememberDefault($folder, $annotation->getType(), $namespace->getOwner($folder), $namespace->matchNamespace($folder)->getType() == Horde_Kolab_Storage_Folder_Namespace::PERSONAL); } } $this->_defaults->markComplete(); } }
/** * Return any default folder duplicates. * * @return array The list of duplicate default folders accessible to the current user. */ public function getDuplicateDefaults() { return $this->_defaults->getDuplicates(); }