Looks for the folder to use, based on the request made by the client
This is to make sure we were not:
package |
OCA\Gallery\Service |
---|
__construct(string $appName, \OCA\Gallery\Environment\Environment $environment, \OCP\ILogger $logger)
findFolder(string $location, integer $depth) : array
If the path leads to a file, we'll return the node of the containing folder
If we can't find anything, we try with the parent folder, up to the root or until we reach our recursive limit
string
integer
array
<string,Folder,bool>
formatNodeData(string $imagePath, integer $nodeId, integer $mTime, string $etag, integer $size, boolean $sharedWithUser, $ownerData, integer $permissions) : array
string
integer
integer
string
integer
boolean
integer
array
getAllowedSubFolder(\OCP\Files\Folder $node, string $nodeType) : array|\OCP\Files\Folder
\OCP\Files\Folder
string
array|\OCP\Files\Folder
getCurrentFolder(string $location, array<mixed,string> $features) : array
string
array<mixed,string>
array
<string,Folder,bool>
getFile(integer $nodeId) : \OCP\Files\Node
Throws |
|
---|
integer
ID of the resource to locate
\OCP\Files\Node
getFolderData(\OCP\Files\Folder $node) : \OCA\Gallery\Service\array<string,int|string|boolean|\OCA\Gallery\Service\array<string,int|\OCA\Gallery\Service\string>>
\OCP\Files\Folder
\OCA\Gallery\Service\array>
getNode(integer $nodeId) : \OCP\Files\Node
Throws |
|
---|
integer
ID of the resource to locate
\OCP\Files\Node
getNodeData(\OCP\Files\Node|\OCP\Files\File|\OCP\Files\Folder $node) : \OCA\Gallery\Service\array<string,int|string|boolean|\OCA\Gallery\Service\array<string,int|\OCA\Gallery\Service\string>>
\OCP\Files\Node|\OCP\Files\File|\OCP\Files\Folder
\OCA\Gallery\Service\array>
getNodes(\OCP\Files\Folder $folder, integer $subDepth) : array
If we can't find anything in the current folder, we throw an exception as there is no point in doing any more work, but if we're looking at a sub-folder, we return an empty array so that it can be simply ignored
\OCP\Files\Folder
integer
array
getNodeType(\OCP\Files\Node $node) : string
If there is a problem, we return an empty string so that the node can be ignored
\OCP\Files\Node
string
getOwnerData(\OCP\Files\Node $node) : null|\OCA\Gallery\Service\array<string,int|\OCA\Gallery\Service\string>
\OCP\Files\Node
null|\OCA\Gallery\Service\array
isAllowed(\OCP\Files\Node $node) : boolean
\OCP\Files\Node
boolean
isAllowedAndAvailable(\OCP\Files\Node $node) : boolean
isMounted() doesn't include externally hosted shares, so we need to exclude those from the non-mounted nodes
\OCP\Files\Node
boolean
isAvailable(\OCP\Files\Node $node) : boolean
todo |
Test to see by how much using file_exists slows things down |
---|
\OCP\Files\Node
boolean
isExternalShare(\OCP\Files\Node $node) : boolean
\OCP\Files\Node
boolean
isExternalShareAllowed() : boolean
boolean
isRootFolder(\OCP\Files\Folder $folder, integer $level) : boolean
\OCP\Files\Folder
integer
boolean
recoverFromGetNodesError(integer $subDepth, \Exception $exception) : array
Throws |
|
---|
integer
\Exception
array
sendFolder(string $path, \OCP\Files\Folder $node) : array
Throws |
|
---|
string
\OCP\Files\Folder
array
<string,Folder,bool>
validateLocation(string $location, integer $depth) : string
string
integer
string
validateNode(\OCP\Files\Node $node)
Throws |
|
---|
\OCP\Files\Node
virtualRootLevel : integer
var |
---|
integer
features : array<mixed,string>
var |
---|
array<mixed,string>
ignoreAlbum : string
var |
---|
string
appName : string
var |
---|
string
environment : \OCA\Gallery\Environment\Environment
logger : \OCP\ILogger
var |
---|
\OCP\ILogger