[Pkg-owncloud-commits] [owncloud] 15/42: add getOwner impementation to Home Storage

David Prévot taffit at moszumanska.debian.org
Wed Jan 22 21:21:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 65fa896bc2f0d2221a02e6e9d79f6a01d7520e30
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Mon Dec 16 21:24:43 2013 +0100

    add getOwner impementation to Home Storage
---
 lib/private/files/storage/home.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php
index 1c2a682..ef6b2a1 100644
--- a/lib/private/files/storage/home.php
+++ b/lib/private/files/storage/home.php
@@ -63,4 +63,14 @@ class Home extends Local {
 	public function getUser() {
 		return $this->user;
 	}
+	
+	/**
+	 * get the owner of a path
+	 *
+	 * @param string $path The path to get the owner
+	 * @return string uid or false
+	 */
+	public function getOwner($path) {
+		return $this->getUser()->getUID();
+	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list