ShareHelper¶
-
class
OC\Share20\
ShareHelper
¶ Source: lib/private/Share20/ShareHelper.php#34 Implements: OCP\Share\IShareHelper
Properties¶
Methods¶
-
public
OC\Share20\ShareHelper::
__construct
($shareManager)¶ Source: lib/private/Share20/ShareHelper.php#39
-
public
OC\Share20\ShareHelper::
getPathsForAccessList
($node)¶ Source: Parameters: - $node (
OCP\Files\Node
)
Returns: array [ users => [Mapping $uid => $pathForUser], remotes => [Mapping $cloudId => $pathToMountRoot]]
- $node (
-
protected
OC\Share20\ShareHelper::
getPathsForUsers
($node, $users)¶ - Sample:$users = [‘test1’ => [‘node_id’ => 16, ‘node_path’ => ‘/foo’],‘test2’ => [‘node_id’ => 23, ‘node_path’ => ‘/bar’],‘test3’ => [‘node_id’ => 42, ‘node_path’ => ‘/cat’],‘test4’ => [‘node_id’ => 48, ‘node_path’ => ‘/dog’],];Node tree:- SixTeen is the parent of TwentyThree- TwentyThree is the parent of FortyTwo- FortyEight does not exist$return = [‘test1’ => ‘/foo/TwentyThree/FortyTwo’,‘test2’ => ‘/bar/FortyTwo’,‘test3’ => ‘/cat’,],
Source: Parameters: - $node (
OCP\Files\Node
) - $users (array[])
Returns: array
- $node (
-
protected
OC\Share20\ShareHelper::
getPathsForRemotes
($node, $remotes)¶ - Sample:$remotes = [‘test1’ => [‘node_id’ => 16, ‘token’ => ‘t1’],‘test2’ => [‘node_id’ => 23, ‘token’ => ‘t2’],‘test3’ => [‘node_id’ => 42, ‘token’ => ‘t3’],‘test4’ => [‘node_id’ => 48, ‘token’ => ‘t4’],];Node tree:- SixTeen is the parent of TwentyThree- TwentyThree is the parent of FortyTwo- FortyEight does not exist$return = [‘test1’ => [‘token’ => ‘t1’, ‘node_path’ => ‘/SixTeen’],‘test2’ => [‘token’ => ‘t2’, ‘node_path’ => ‘/SixTeen/TwentyThree’],‘test3’ => [‘token’ => ‘t3’, ‘node_path’ => ‘/SixTeen/TwentyThree/FortyTwo’],],
Source: Parameters: - $node (
OCP\Files\Node
) - $remotes (array[])
Returns: array
- $node (
-
protected
OC\Share20\ShareHelper::
getMountedPath
($node)¶ Source: Parameters: - $node (
OCP\Files\Node
)
Returns: string
- $node (