Add optional $type argument in kolab_storage::get_folder()
This commit is contained in:
parent
e97b087f79
commit
2c9c463e84
1 changed files with 5 additions and 6 deletions
|
@ -144,7 +144,6 @@ class kolab_storage
|
|||
return self::$ldap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a list of storage folders for the given data type
|
||||
*
|
||||
|
@ -183,19 +182,19 @@ class kolab_storage
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Getter for a specific storage folder
|
||||
*
|
||||
* @param string IMAP folder to access (UTF7-IMAP)
|
||||
* @param string IMAP folder to access (UTF7-IMAP)
|
||||
* @param string Expected folder type
|
||||
*
|
||||
* @return object kolab_storage_folder The folder object
|
||||
*/
|
||||
public static function get_folder($folder)
|
||||
public static function get_folder($folder, $type = null)
|
||||
{
|
||||
return self::setup() ? new kolab_storage_folder($folder) : null;
|
||||
return self::setup() ? new kolab_storage_folder($folder, $type) : null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Getter for a single Kolab object, identified by its UID.
|
||||
* This will search all folders storing objects of the given type.
|
||||
|
|
Loading…
Add table
Reference in a new issue