Version 5.0.0 beta 3

This commit is contained in:
Neo committed 2025-12-19 16:47:22 -08:00
1 parent f61b0da85d
commit e86153356a
108 files changed
+2927 -1573

No files matched your search

@@ -67,6 +67,34 @@ class tags extends Controller
parent::execute();
}
/**
* @return int|null
*/
public function _getRootsPerPage(): ?int
{
return 100;
}
/**
* Get Root Rows
*
* @return array
*/
public function _getRoots(): array
{
$args = func_get_args(); // We actually send [ start, limit ] to this method
$nodeClass = $this->nodeClass;
$rows = array();
$start = $args[0][0] ?? 0;
$limit = $args[0][1] ?? $this->_getRootsPerPage();
foreach( $nodeClass::roots( NULL, NULL, [], [ $start, $limit ] ) as $node )
{
$rows[ $node->_id ] = $this->_getRow($node);
}
return $rows;
}
/**
* Manage
*