]> source.dussan.org Git - nextcloud-server.git/commitdiff
generalize the "lazy folder" concept 20813/head
authorRobin Appelman <robin@icewind.nl>
Mon, 4 May 2020 15:22:55 +0000 (17:22 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 11 May 2020 13:36:13 +0000 (15:36 +0200)
makes it easy to use lazy intialized folder in other places

Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/private/Files/Node/LazyFolder.php [new file with mode: 0644]
lib/private/Files/Node/LazyRoot.php

index 2ce38a33c14c06cd33ab323a5ec1c027ec4db8b3..dd013535eb6a78aee46e4e0ded29073dd065a5b9 100644 (file)
@@ -982,6 +982,7 @@ return array(
     'OC\\Files\\Node\\File' => $baseDir . '/lib/private/Files/Node/File.php',
     'OC\\Files\\Node\\Folder' => $baseDir . '/lib/private/Files/Node/Folder.php',
     'OC\\Files\\Node\\HookConnector' => $baseDir . '/lib/private/Files/Node/HookConnector.php',
+    'OC\\Files\\Node\\LazyFolder' => $baseDir . '/lib/private/Files/Node/LazyFolder.php',
     'OC\\Files\\Node\\LazyRoot' => $baseDir . '/lib/private/Files/Node/LazyRoot.php',
     'OC\\Files\\Node\\Node' => $baseDir . '/lib/private/Files/Node/Node.php',
     'OC\\Files\\Node\\NonExistingFile' => $baseDir . '/lib/private/Files/Node/NonExistingFile.php',
index e902e4e2cdc14d6e32156bc85e818d9dfb19fcc7..e6122b53a79888595477e261283c5c18e504a7b2 100644 (file)
@@ -1011,6 +1011,7 @@ class ComposerStaticInit53792487c5a8370acc0b06b1a864ff4c
         'OC\\Files\\Node\\File' => __DIR__ . '/../../..' . '/lib/private/Files/Node/File.php',
         'OC\\Files\\Node\\Folder' => __DIR__ . '/../../..' . '/lib/private/Files/Node/Folder.php',
         'OC\\Files\\Node\\HookConnector' => __DIR__ . '/../../..' . '/lib/private/Files/Node/HookConnector.php',
+        'OC\\Files\\Node\\LazyFolder' => __DIR__ . '/../../..' . '/lib/private/Files/Node/LazyFolder.php',
         'OC\\Files\\Node\\LazyRoot' => __DIR__ . '/../../..' . '/lib/private/Files/Node/LazyRoot.php',
         'OC\\Files\\Node\\Node' => __DIR__ . '/../../..' . '/lib/private/Files/Node/Node.php',
         'OC\\Files\\Node\\NonExistingFile' => __DIR__ . '/../../..' . '/lib/private/Files/Node/NonExistingFile.php',
diff --git a/lib/private/Files/Node/LazyFolder.php b/lib/private/Files/Node/LazyFolder.php
new file mode 100644 (file)
index 0000000..50cd0f9
--- /dev/null
@@ -0,0 +1,496 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OC\Files\Node;
+
+/**
+ * Class LazyFolder
+ *
+ * This is a lazy wrapper around a folder. So only
+ * once it is needed this will get initialized.
+ *
+ * @package OC\Files\Node
+ */
+class LazyFolder implements \OCP\Files\Folder {
+       /** @var \Closure */
+       private $folderClosure;
+
+       /** @var LazyFolder | null */
+       private $folder = null;
+
+       /**
+        * LazyFolder constructor.
+        *
+        * @param \Closure $folderClosure
+        */
+       public function __construct(\Closure $folderClosure) {
+               $this->folderClosure = $folderClosure;
+       }
+
+       /**
+        * Magic method to first get the real rootFolder and then
+        * call $method with $args on it
+        *
+        * @param $method
+        * @param $args
+        * @return mixed
+        */
+       public function __call($method, $args) {
+               if ($this->folder === null) {
+                       $this->folder = call_user_func($this->folderClosure);
+               }
+
+               return call_user_func_array([$this->folder, $method], $args);
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getUser() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function listen($scope, $method, callable $callback) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function removeListener($scope = null, $method = null, callable $callback = null) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function emit($scope, $method, $arguments = []) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function mount($storage, $mountPoint, $arguments = []) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMount($mountPoint) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMountsIn($mountPoint) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMountByStorageId($storageId) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMountByNumericStorageId($numericId) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function unMount($mount) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function get($path) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function rename($targetPath) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function delete() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function copy($targetPath) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function touch($mtime = null) {
+               $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getStorage() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getPath() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getInternalPath() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getId() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function stat() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMTime() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getSize($includeMounts = true) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getEtag() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getPermissions() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isReadable() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isUpdateable() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isDeletable() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isShareable() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getParent() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getName() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getUserFolder($userId) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMimetype() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMimePart() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isEncrypted() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getType() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isShared() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isMounted() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getMountPoint() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getOwner() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getChecksum() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       public function getExtension(): string {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getFullPath($path) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getRelativePath($path) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isSubNode($node) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getDirectoryListing() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function nodeExists($path) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function newFolder($path) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function newFile($path, $content = null) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function search($query) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function searchByMime($mimetype) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function searchByTag($tag, $userId) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getById($id) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getFreeSpace() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function isCreatable() {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getNonExistingName($name) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function move($targetPath) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function lock($type) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function changeLock($targetType) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function unlock($type) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getRecent($limit, $offset = 0) {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getCreationTime(): int {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+
+       /**
+        * @inheritDoc
+        */
+       public function getUploadTime(): int {
+               return $this->__call(__FUNCTION__, func_get_args());
+       }
+}
index 6c92764aff0938d4374568fef865d0fb13def1f2..e17640373fef4fa92a5b06ed3171bbc802a51ca9 100644 (file)
@@ -34,466 +34,11 @@ use OCP\Files\IRootFolder;
  *
  * @package OC\Files\Node
  */
-class LazyRoot implements IRootFolder {
-       /** @var \Closure */
-       private $rootFolderClosure;
-
-       /** @var IRootFolder */
-       private $rootFolder;
-
-       /**
-        * LazyRoot constructor.
-        *
-        * @param \Closure $rootFolderClosure
-        */
-       public function __construct(\Closure $rootFolderClosure) {
-               $this->rootFolderClosure = $rootFolderClosure;
-       }
-
-       /**
-        * Magic method to first get the real rootFolder and then
-        * call $method with $args on it
-        *
-        * @param $method
-        * @param $args
-        * @return mixed
-        */
-       public function __call($method, $args) {
-               if ($this->rootFolder === null) {
-                       $this->rootFolder = call_user_func($this->rootFolderClosure);
-               }
-
-               return call_user_func_array([$this->rootFolder, $method], $args);
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getUser() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function listen($scope, $method, callable $callback) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function removeListener($scope = null, $method = null, callable $callback = null) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function emit($scope, $method, $arguments = []) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function mount($storage, $mountPoint, $arguments = []) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMount($mountPoint) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMountsIn($mountPoint) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMountByStorageId($storageId) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMountByNumericStorageId($numericId) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function unMount($mount) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function get($path) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function rename($targetPath) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function delete() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function copy($targetPath) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function touch($mtime = null) {
-               $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getStorage() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getPath() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getInternalPath() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getId() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function stat() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMTime() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getSize($includeMounts = true) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getEtag() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getPermissions() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isReadable() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isUpdateable() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isDeletable() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isShareable() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getParent() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getName() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
+class LazyRoot extends LazyFolder implements IRootFolder {
        /**
         * @inheritDoc
         */
        public function getUserFolder($userId) {
                return $this->__call(__FUNCTION__, func_get_args());
        }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMimetype() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMimePart() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isEncrypted() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getType() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isShared() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isMounted() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getMountPoint() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getOwner() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getChecksum() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       public function getExtension(): string {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getFullPath($path) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getRelativePath($path) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isSubNode($node) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getDirectoryListing() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function nodeExists($path) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function newFolder($path) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function newFile($path, $content = null) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function search($query) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function searchByMime($mimetype) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function searchByTag($tag, $userId) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getById($id) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getFreeSpace() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function isCreatable() {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getNonExistingName($name) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function move($targetPath) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function lock($type) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function changeLock($targetType) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function unlock($type) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getRecent($limit, $offset = 0) {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getCreationTime(): int {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
-
-       /**
-        * @inheritDoc
-        */
-       public function getUploadTime(): int {
-               return $this->__call(__FUNCTION__, func_get_args());
-       }
 }