Static Public Member Functions |
static | file_exists ($pFilename) |
| Verify if a file exists.
|
static | realpath ($pFilename) |
| Returns canonicalized absolute pathname, also for ZIP archives.
|
Detailed Description
Definition at line 36 of file File.php.
Member Function Documentation
static PHPExcel_Shared_File::file_exists |
( |
|
$pFilename | ) |
|
|
static |
static PHPExcel_Shared_File::realpath |
( |
|
$pFilename | ) |
|
|
static |
Returns canonicalized absolute pathname, also for ZIP archives.
- Parameters
-
- Returns
- string
Definition at line 73 of file File.php.
Referenced by PHPExcel_Reader_Excel2007\load().
{
$returnValue = '';
if ($returnValue == '' || is_null($returnValue)) {
$pathArray = split('/' , $pFilename);
while(in_array('..', $pathArray) && $pathArray[0] != '..') {
for ($i = 0; $i < count($pathArray); ++$i) {
if ($pathArray[$i] == '..' && $i > 0) {
unset($pathArray[$i]);
unset($pathArray[$i - 1]);
break;
}
}
}
$returnValue = implode('/', $pathArray);
}
return $returnValue;
}
The documentation for this class was generated from the following file:
- Services/Excel/classes/PHPExcel/Shared/File.php