public function listFolderTypes();
/**
+ * Returns the namespace for the list.
+ *
+ * @return Horde_Kolab_Storage_Folder_Namespace The namespace handler.
+ */
+ public function getNamespace();
+
+ /**
* Synchronize the list information with the information from the backend.
*
* @return NULL
}
/**
+ * Returns the namespace for the list.
+ *
+ * @return Horde_Kolab_Storage_Folder_Namespace The namespace handler.
+ */
+ public function getNamespace()
+ {
+ return $this->_driver->getNamespace();
+ }
+
+ /**
* Synchronize the list information with the information from the backend.
*
* @return NULL
}
/**
+ * Returns the namespace for the list.
+ *
+ * @return Horde_Kolab_Storage_Folder_Namespace The namespace handler.
+ */
+ public function getNamespace()
+ {
+ return $this->_list->getNamespace();
+ }
+
+ /**
* Synchronize the list information with the information from the backend.
*
* @return NULL
}
/**
+ * Returns the namespace for the list.
+ *
+ * @return Horde_Kolab_Storage_Folder_Namespace The namespace handler.
+ */
+ public function getNamespace()
+ {
+ return $this->_list->getNamespace();
+ }
+
+ /**
* Synchronize the list information with the information from the backend.
*
* @return NULL
* @return array The list of folders.
*/
public function listByType($type);
+
+ /**
+ * Get the default folder for a certain type.
+ *
+ * @param string $type The type of the share/folder.
+ *
+ * @return string|boolean The name of the default folder, false if there is no default.
+ */
+// public function getDefault($type);
+
+ /**
+ * Get the default folder for a certain type from a different owner.
+ *
+ * @param string $owner The folder owner.
+ * @param string $type The type of the share/folder.
+ *
+ * @return string|boolean The name of the default folder, false if there is no default.
+ */
+// public function getForeignDefault($owner, $type);
+
}
\ No newline at end of file
$this->assertType('array', $list->listFolderTypes());
}
+ public function testGetNamespace()
+ {
+ $list = $this->getNullList();
+ $this->assertInstanceOf(
+ 'Horde_Kolab_Storage_Folder_Namespace',
+ $list->getNamespace()
+ );
+ }
+
public function testListQueriable()
{
$list = new Horde_Kolab_Storage_List_Base(
$list->getQuery('Horde_Kolab_Storage_Stub_FactoryQuery')
);
}
+
}
$list->listFolders();
}
+ public function testGetNamespace()
+ {
+ $list = new Horde_Kolab_Storage_List_Decorator_Cache(
+ $this->getNullList(),
+ $this->getMockListCache()
+ );
+ $this->assertInstanceOf(
+ 'Horde_Kolab_Storage_Folder_Namespace',
+ $list->getNamespace()
+ );
+ }
+
public function testGetQuery()
{
$factory = new Horde_Kolab_Storage_Factory();
$this->assertLogContains('List for test@example.com@mock:0 contained 4 folders and annotations.');
}
+ public function testGetNamespace()
+ {
+ $list = new Horde_Kolab_Storage_List_Decorator_Log(
+ $this->getNullList(),
+ $this->getMockLogger()
+ );
+ $this->assertInstanceOf(
+ 'Horde_Kolab_Storage_Folder_Namespace',
+ $list->getNamespace()
+ );
+ }
+
public function testGetQuery()
{
$factory = new Horde_Kolab_Storage_Factory();