Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage.php
Show First 20 Lines • Show All 1,088 Lines • ▼ Show 20 Lines | public static function folder_hierarchy($folders, &$tree = null) | ||||
$_folders[] = $folder; | $_folders[] = $folder; | ||||
unset($folders[$idx]); | unset($folders[$idx]); | ||||
} | } | ||||
return $_folders; | return $_folders; | ||||
} | } | ||||
/** | /** | ||||
* Clears the internal typedata cache. | |||||
*/ | |||||
public static function clear_typedata() | |||||
{ | |||||
self::$typedata = null; | |||||
} | |||||
/** | |||||
* Returns folder types indexed by folder name | * Returns folder types indexed by folder name | ||||
* | * | ||||
* @param string $prefix Folder prefix (Default '*' for all folders) | * @param string $prefix Folder prefix (Default '*' for all folders) | ||||
* | * | ||||
* @return array|bool List of folders, False on failure | * @return array|bool List of folders, False on failure | ||||
*/ | */ | ||||
public static function folders_typedata($prefix = '*') | public static function folders_typedata($prefix = '*') | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 706 Lines • Show Last 20 Lines |