|
|
@ -121,7 +121,7 @@ var_dump ( |
|
|
|
$filesystem->getList( |
|
|
|
$filesystem->getList( |
|
|
|
'hello:world' |
|
|
|
'hello:world' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getTree |
|
|
|
#### Filesystem::getTree |
|
|
@ -133,7 +133,7 @@ var_dump ( |
|
|
|
$filesystem->getTree( |
|
|
|
$filesystem->getTree( |
|
|
|
'hello:world' |
|
|
|
'hello:world' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getPagePathsByPath |
|
|
|
#### Filesystem::getPagePathsByPath |
|
|
@ -145,7 +145,7 @@ var_dump ( |
|
|
|
$filesystem->getPagePathsByPath( |
|
|
|
$filesystem->getPagePathsByPath( |
|
|
|
// absolute path to target data directory (e.g. Filesystem::getDirectoryPathByUri) |
|
|
|
// absolute path to target data directory (e.g. Filesystem::getDirectoryPathByUri) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getDirectoryPathByUri |
|
|
|
#### Filesystem::getDirectoryPathByUri |
|
|
@ -158,7 +158,7 @@ var_dump ( |
|
|
|
$filesystem->getPagePathByUri( |
|
|
|
$filesystem->getPagePathByUri( |
|
|
|
'hello:world' |
|
|
|
'hello:world' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getDirectoryUriByPath |
|
|
|
#### Filesystem::getDirectoryUriByPath |
|
|
@ -171,7 +171,7 @@ var_dump ( |
|
|
|
$filesystem->getPageUriByPath( |
|
|
|
$filesystem->getPageUriByPath( |
|
|
|
'/full/path/to/page.txt' |
|
|
|
'/full/path/to/page.txt' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Helper |
|
|
|
### Helper |
|
|
@ -185,7 +185,7 @@ $helper = new \Yggverse\Gemini\Dokuwiki\Helper( |
|
|
|
); |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getChildrenSectionLinksByUri |
|
|
|
#### Helper::getChildrenSectionLinksByUri |
|
|
|
|
|
|
|
|
|
|
|
Return simple array of children section links in Gemini format |
|
|
|
Return simple array of children section links in Gemini format |
|
|
|
|
|
|
|
|
|
|
@ -194,10 +194,10 @@ var_dump ( |
|
|
|
$helper->getChildrenSectionLinksByUri( |
|
|
|
$helper->getChildrenSectionLinksByUri( |
|
|
|
'hello:world' |
|
|
|
'hello:world' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
#### Filesystem::getChildrenPageLinksByUri |
|
|
|
#### Helper::getChildrenPageLinksByUri |
|
|
|
|
|
|
|
|
|
|
|
Return simple array of children page links in Gemini format |
|
|
|
Return simple array of children page links in Gemini format |
|
|
|
|
|
|
|
|
|
|
@ -206,5 +206,19 @@ var_dump ( |
|
|
|
$helper->getChildrenPageLinksByUri( |
|
|
|
$helper->getChildrenPageLinksByUri( |
|
|
|
'hello:world' |
|
|
|
'hello:world' |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Helper::getPageLinkByPath |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return page link (that contain document name) in Gemini format |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
var_dump ( |
|
|
|
|
|
|
|
$helper->getPageLinkByPath( |
|
|
|
|
|
|
|
$filesystem->getPagePathByUri( |
|
|
|
|
|
|
|
'hello:world' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
); |
|
|
|
``` |
|
|
|
``` |