mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-03-31 17:05:29 +00:00
add getPagePathsByPath method
This commit is contained in:
parent
30e55ac8d5
commit
d5b1f09dbb
2 changed files with 22 additions and 0 deletions
|
|
@ -32,6 +32,16 @@ class Filesystem
|
|||
return $this->_list;
|
||||
}
|
||||
|
||||
public function getPagePathsByPath(string $path): ?array
|
||||
{
|
||||
if (isset($this->_tree[$path]))
|
||||
{
|
||||
return $this->_tree[$path];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getPagePathByUri(string $uri): ?string
|
||||
{
|
||||
$path = sprintf(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue