add class SeedDMS_ExtPaperless_Process_Folder

This commit is contained in:
Uwe Steinmann 2023-10-11 16:29:38 +02:00
parent aefd3b8807
commit 6395de766b

View File

@ -55,6 +55,23 @@ class SeedDMS_ExtPaperless_Settings { /* {{{ */
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
class SeedDMS_ExtPaperless_Process_Folder { /* {{{ */
protected $list;
public function __construct() {
$this->list = [];
}
public function process($folder, $depth=0) { /* {{{ */
// FIXME: hasDocuments() contains also documents not in status=2
$this->list[$folder->getId()] = [$folder->getFolderPathPlain(true, '/'), $folder->hasDocuments()];
} /* }}} */
public function getList() { /* {{{ */
return $this->list;
} /* }}} */
} /* }}} */
class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
protected $container; protected $container;