From f57ff3646c6390b418a694f6aee8337ffee28501 Mon Sep 17 00:00:00 2001 From: Brett Bieber Date: Sat, 15 Nov 2008 01:02:20 +0000 Subject: [PATCH] Document SplFileInfo::getLinkTarget git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@269039 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl/splfileinfo/getlinktarget.xml | 35 ++++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/reference/spl/splfileinfo/getlinktarget.xml b/reference/spl/splfileinfo/getlinktarget.xml index ea93c98630..776a3359c8 100644 --- a/reference/spl/splfileinfo/getlinktarget.xml +++ b/reference/spl/splfileinfo/getlinktarget.xml @@ -1,21 +1,27 @@ - + SplFileInfo::getLinkTarget - The getLinkTarget purpose + Get the target of a link &reftitle.description; - public voidSplFileInfo::getLinkTarget + public stringSplFileInfo::getLinkTarget - The method description goes here. + Get the target of a filesystem link. + + + The target may not be the real path on the filesystem. Use SplFileInfo::getRealPath + to determine the true path on the filesystem. + + @@ -26,7 +32,14 @@ &reftitle.returnvalues; - Description... + Returns the target of the filesystem link. + + + + + &reftitle.errors; + + Throws RuntimeException on error. @@ -38,14 +51,19 @@ isLink()) { + var_dump($info->getLinkTarget()); + var_dump($info->getRealPath()); +} ?> ]]> &example.outputs.similar; @@ -56,7 +74,8 @@ &reftitle.seealso; - Classname::Method + SplFileInfo::isLink + SplFileInfo::getRealPath