diff --git a/reference/spl/splfileinfo/getatime.xml b/reference/spl/splfileinfo/getatime.xml index 757c588123..38ff457be9 100644 --- a/reference/spl/splfileinfo/getatime.xml +++ b/reference/spl/splfileinfo/getatime.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getATime - Get last access time of the file + Gets last access time of the file diff --git a/reference/spl/splfileinfo/getbasename.xml b/reference/spl/splfileinfo/getbasename.xml index c842ab908b..39b9d9261e 100644 --- a/reference/spl/splfileinfo/getbasename.xml +++ b/reference/spl/splfileinfo/getbasename.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getBasename - Get the base name of the file + Gets the base name of the file diff --git a/reference/spl/splfileinfo/getfileinfo.xml b/reference/spl/splfileinfo/getfileinfo.xml index 0246d1f1b6..6637612069 100644 --- a/reference/spl/splfileinfo/getfileinfo.xml +++ b/reference/spl/splfileinfo/getfileinfo.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getFileInfo - Get an SplFileInfo object for the file + Gets an SplFileInfo object for the file diff --git a/reference/spl/splfileinfo/getfilename.xml b/reference/spl/splfileinfo/getfilename.xml index 759b3f0d25..b944accee8 100644 --- a/reference/spl/splfileinfo/getfilename.xml +++ b/reference/spl/splfileinfo/getfilename.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getFilename - Get the filename + Gets the filename @@ -14,7 +14,7 @@ - Get the filename without any path information. + Gets the filename without any path information. diff --git a/reference/spl/splfileinfo/getgroup.xml b/reference/spl/splfileinfo/getgroup.xml index 5e91eaa18e..0c9b9b3d4c 100644 --- a/reference/spl/splfileinfo/getgroup.xml +++ b/reference/spl/splfileinfo/getgroup.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getGroup - Get the file group + Gets the file group diff --git a/reference/spl/splfileinfo/getinode.xml b/reference/spl/splfileinfo/getinode.xml index 4f189330a7..7e4871baba 100644 --- a/reference/spl/splfileinfo/getinode.xml +++ b/reference/spl/splfileinfo/getinode.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getInode - Get the inode for the file + Gets the inode for the file diff --git a/reference/spl/splfileinfo/getlinktarget.xml b/reference/spl/splfileinfo/getlinktarget.xml index 776a3359c8..76d3dcd81b 100644 --- a/reference/spl/splfileinfo/getlinktarget.xml +++ b/reference/spl/splfileinfo/getlinktarget.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getLinkTarget - Get the target of a link + Gets the target of a link @@ -14,7 +14,7 @@ - Get the target of a filesystem link. + Gets the target of a filesystem link. diff --git a/reference/spl/splfileinfo/getowner.xml b/reference/spl/splfileinfo/getowner.xml index 9b8ea7307b..ce8a362a05 100644 --- a/reference/spl/splfileinfo/getowner.xml +++ b/reference/spl/splfileinfo/getowner.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getOwner - Get the owner of the file + Gets the owner of the file diff --git a/reference/spl/splfileinfo/getpath.xml b/reference/spl/splfileinfo/getpath.xml index 4a53ad0389..d3590e1f79 100644 --- a/reference/spl/splfileinfo/getpath.xml +++ b/reference/spl/splfileinfo/getpath.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getPath - Get the path without filename + Gets the path without filename diff --git a/reference/spl/splfileinfo/getpathinfo.xml b/reference/spl/splfileinfo/getpathinfo.xml index 3369e0fac1..6a658d50e4 100644 --- a/reference/spl/splfileinfo/getpathinfo.xml +++ b/reference/spl/splfileinfo/getpathinfo.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getPathInfo - Get an SplFileInfo object for the path + Gets an SplFileInfo object for the path diff --git a/reference/spl/splfileinfo/getpathname.xml b/reference/spl/splfileinfo/getpathname.xml index 152ef5aaf6..990347a7eb 100644 --- a/reference/spl/splfileinfo/getpathname.xml +++ b/reference/spl/splfileinfo/getpathname.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getPathname - Get the path to the file + Gets the path to the file @@ -39,7 +39,7 @@ getPathName()); +var_dump($info->getPathname()); ?> ]]> diff --git a/reference/spl/splfileinfo/getperms.xml b/reference/spl/splfileinfo/getperms.xml index 3a35364bcc..da762d2981 100644 --- a/reference/spl/splfileinfo/getperms.xml +++ b/reference/spl/splfileinfo/getperms.xml @@ -1,20 +1,20 @@ - + SplFileInfo::getPerms - The getPerms purpose + Gets file permissions &reftitle.description; - public voidSplFileInfo::getPerms + public intSplFileInfo::getPerms - The method description goes here. + Gets the file permissions for the file. @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Description... + Returns the file permissions. @@ -38,29 +38,25 @@ getPerms()), -4); + +$info = new SplFileInfo(__FILE__); +echo substr(sprintf('%o', $info->getPerms()), -4); ?> ]]> &example.outputs.similar; - - &reftitle.seealso; - - - Classname::Method - - - - + SplFileInfo::getRealPath - The getRealPath purpose + Gets absolute path to file @@ -14,7 +14,7 @@ - The method description goes here. + This method expands all symbolic links, resolves relative references and returns the real path to the file. @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Description... + Returns the path to the file. @@ -38,14 +38,19 @@ getRealPath()); + +$info = new SplFileInfo('/tmp'); +var_dump($info->getRealPath()); ?> ]]> &example.outputs.similar; diff --git a/reference/spl/splfileinfo/getsize.xml b/reference/spl/splfileinfo/getsize.xml index 7f183cbfbb..cf38bb9395 100644 --- a/reference/spl/splfileinfo/getsize.xml +++ b/reference/spl/splfileinfo/getsize.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getSize - Get the size of the file + Gets file size diff --git a/reference/spl/splfileinfo/gettype.xml b/reference/spl/splfileinfo/gettype.xml index 4f3e8c3e32..a86e4a4da2 100644 --- a/reference/spl/splfileinfo/gettype.xml +++ b/reference/spl/splfileinfo/gettype.xml @@ -1,10 +1,10 @@ - + SplFileInfo::getType - Get the entry's file type. + Gets file type diff --git a/reference/spl/splfileinfo/isdir.xml b/reference/spl/splfileinfo/isdir.xml index bd34409f77..3bda2377f1 100644 --- a/reference/spl/splfileinfo/isdir.xml +++ b/reference/spl/splfileinfo/isdir.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isDir - Check if the file is a directory + Tells if the file is a directory diff --git a/reference/spl/splfileinfo/isexecutable.xml b/reference/spl/splfileinfo/isexecutable.xml index 1f65443a07..953a115c29 100644 --- a/reference/spl/splfileinfo/isexecutable.xml +++ b/reference/spl/splfileinfo/isexecutable.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isExecutable - Check if the file is executable + Tells if the file is executable @@ -37,11 +37,13 @@ <function>SplFileInfo::isExecutable</function> example isExecutable()); -$d = new SplFileInfo('/usr/bin'); -var_dump($d->isExecutable()); -$d = new SplFileInfo('foo'); -var_dump($d->isExecutable()); +isExecutable()); + +$info = new SplFileInfo('/usr/bin'); +var_dump($info->isExecutable()); + +$info = new SplFileInfo('foo'); +var_dump($info->isExecutable()); ?> ]]> diff --git a/reference/spl/splfileinfo/isfile.xml b/reference/spl/splfileinfo/isfile.xml index 085bd4e978..6b26ad0f5a 100644 --- a/reference/spl/splfileinfo/isfile.xml +++ b/reference/spl/splfileinfo/isfile.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isFile - Check if the object references a regular file + Tells if the object references a regular file @@ -37,10 +37,10 @@ <function>SplFileInfo::isFile</function> example isFile()); +isFile()); -$d = new SplFileInfo(dirname(__FILE__)); -var_dump($d->isFile()); +$info = new SplFileInfo(dirname(__FILE__)); +var_dump($info->isFile()); ?> ]]> diff --git a/reference/spl/splfileinfo/islink.xml b/reference/spl/splfileinfo/islink.xml index 2828e79ac3..23bb04eafe 100644 --- a/reference/spl/splfileinfo/islink.xml +++ b/reference/spl/splfileinfo/islink.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isLink - Check if the file is a link + Tells if the file is a link diff --git a/reference/spl/splfileinfo/isreadable.xml b/reference/spl/splfileinfo/isreadable.xml index 431a79ea35..22601a4f2b 100644 --- a/reference/spl/splfileinfo/isreadable.xml +++ b/reference/spl/splfileinfo/isreadable.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isReadable - Check if file is readable + Tells if file is readable @@ -37,7 +37,8 @@ <function>SplFileInfo::isReadable</function> example isReadable()); $d = new SplFileInfo('foo'); var_dump($d->isReadable()); +isReadable()); + $info = new SplFileInfo('foo'); var_dump($info->isReadable()); ?> ]]> diff --git a/reference/spl/splfileinfo/iswritable.xml b/reference/spl/splfileinfo/iswritable.xml index 379f98d20b..68ed5f9fe9 100644 --- a/reference/spl/splfileinfo/iswritable.xml +++ b/reference/spl/splfileinfo/iswritable.xml @@ -1,10 +1,10 @@ - + SplFileInfo::isWritable - Check if the entry is writeable + Tells if the entry is writeable diff --git a/reference/spl/splfileinfo/openfile.xml b/reference/spl/splfileinfo/openfile.xml index 5c6abdd37f..1ecef29bf1 100644 --- a/reference/spl/splfileinfo/openfile.xml +++ b/reference/spl/splfileinfo/openfile.xml @@ -1,19 +1,19 @@ - + SplFileInfo::openFile - The openFile purpose + Gets an SplFileObject object for the file &reftitle.description; - public voidSplFileInfo::openFile + public SplFileObjectSplFileInfo::openFile stringopen_mode - stringuse_include_path - stringcontext + booluse_include_path + resourcecontext The method description goes here. @@ -86,7 +86,8 @@ &reftitle.seealso; - Classname::Method + SplFileObject + stream_context_create diff --git a/reference/spl/splfileinfo/setfileclass.xml b/reference/spl/splfileinfo/setfileclass.xml index 8b1fe61689..1fda9c5cac 100644 --- a/reference/spl/splfileinfo/setfileclass.xml +++ b/reference/spl/splfileinfo/setfileclass.xml @@ -1,10 +1,10 @@ - + SplFileInfo::setFileClass - Set the class name used with SplFileInfo::openFile() + Sets the class name used with SplFileInfo::openFile() @@ -27,7 +27,7 @@ class_name - The class name to be used when openFile() is called. + The class name to use when openFile() is called. @@ -39,7 +39,7 @@ &reftitle.returnvalues; - Description... + &return.void; @@ -51,14 +51,20 @@ setFileClass('MyFoo'); +var_dump($info->openFile()); ?> ]]> &example.outputs.similar; diff --git a/reference/spl/splfileinfo/setinfoclass.xml b/reference/spl/splfileinfo/setinfoclass.xml index defa88da1b..5354f54c3d 100644 --- a/reference/spl/splfileinfo/setinfoclass.xml +++ b/reference/spl/splfileinfo/setinfoclass.xml @@ -1,10 +1,10 @@ - + SplFileInfo::setInfoClass - Set the class used with getFileInfo and getPathInfo + Sets the class used with getFileInfo and getPathInfo @@ -28,7 +28,7 @@ class_name - The class name to be used. + The class name to use. @@ -40,7 +40,35 @@ &reftitle.returnvalues; - Description... + &return.void; + + + + + &reftitle.examples; + + + <function>SplFileInfo::setFileClass</function> example + +setInfoClass('MyFoo'); +var_dump($info->getFileInfo()); +?> +]]> + + &example.outputs.similar; + + + + diff --git a/reference/spl/splfileinfo/tostring.xml b/reference/spl/splfileinfo/tostring.xml index f6511b1a07..ed95f12f52 100644 --- a/reference/spl/splfileinfo/tostring.xml +++ b/reference/spl/splfileinfo/tostring.xml @@ -1,5 +1,5 @@ - + @@ -38,18 +38,23 @@ __toString().PHP_EOL; -$info = SplFileInfo('/usr/bin/php'); -echo $info->__toString(); +$info = new SplFileInfo('foo'); +var_dump($info->__toString()); +echo $info.PHP_EOL; + +$info = new SplFileInfo('/usr/bin/php'); +var_dump($info->__toString()); +echo $info.PHP_EOL; ?> ]]> &example.outputs.similar;