diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/phorkie/File.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/phorkie/File.php b/src/phorkie/File.php index 9eb7fa7..2afda4c 100644 --- a/src/phorkie/File.php +++ b/src/phorkie/File.php @@ -39,6 +39,16 @@ class File } /** + * Get the filename usable as HTML anchor. + * + * @return string + */ + function getAnchorName() + { + return str_replace(' ', '-', $this->getFilename()); + } + + /** * Return the full path to the file * * @return string |
