From: Aaron Schulz Date: Wed, 10 Oct 2012 22:06:19 +0000 (-0700) Subject: [FileBackend] Added tiny getContainerStoragePath() convenience function. X-Git-Tag: 1.31.0-rc.0~22006^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=030c0277a918a86d34e082ce4a1dea4c721b98d1;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Added tiny getContainerStoragePath() convenience function. Change-Id: Icc16c75f0cbfcf247628d0649386e52f1f25d335 --- diff --git a/includes/filebackend/FileBackend.php b/includes/filebackend/FileBackend.php index 1136fc2816..0ef4cd0131 100644 --- a/includes/filebackend/FileBackend.php +++ b/includes/filebackend/FileBackend.php @@ -1073,6 +1073,17 @@ abstract class FileBackend { return "mwstore://{$this->name}"; } + /** + * Get the storage path for the given container for this backend + * + * @param $container string Container name + * @return string Storage path + * @since 1.21 + */ + final public function getContainerStoragePath( $container ) { + return $this->getRootStoragePath() . "/{$container}"; + } + /** * Get the file journal object for this backend *