MediaWiki REL1_34
|
Read the directory of a Microsoft Compound File Binary file, a.k.a. More...
Static Public Member Functions | |
static | readFile ( $fileName) |
Read a file by name. | |
static | readHandle ( $fileHandle) |
Read from an open seekable handle. | |
Public Attributes | |
const | ERROR_FILE_OPEN = 1 |
const | ERROR_INVALID_FORMAT = 6 |
const | ERROR_INVALID_SIGNATURE = 4 |
const | ERROR_READ = 3 |
const | ERROR_READ_PAST_END = 5 |
const | ERROR_SEEK = 2 |
const | TYPE_ROOT = 5 |
const | TYPE_STORAGE = 1 |
const | TYPE_STREAM = 2 |
const | TYPE_UNALLOCATED = 0 |
Private Member Functions | |
__construct ( $fileHandle) | |
bin2dec ( $str, $offset, $length) | |
decodeClsid ( $binaryClsid) | |
error ( $message, $code) | |
fseek ( $offset) | |
getFatSector ( $fatSectorId) | |
getNextSectorIdFromFat ( $sectorId) | |
init () | |
readDifat () | |
readDirectory () | |
readOffset ( $offset, $length) | |
readSector ( $sectorId) | |
sectorOffset ( $sectorId) | |
unpack ( $block, $offset, $struct) | |
unpackOffset ( $offset, $struct) | |
Private Attributes | |
$difat | |
$error | |
$errorCode | |
$fat = [] | |
$file | |
$fileLength | |
$header | |
$mime | |
$mimeFromClsid | |
$sectorLength | |
$valid = false | |
Static Private Attributes | |
static | $mimesByClsid |
Read the directory of a Microsoft Compound File Binary file, a.k.a.
an OLE file, and detect the MIME type.
References:
Definition at line 32 of file MSCompoundFileReader.php.
|
private |
Definition at line 116 of file MSCompoundFileReader.php.
References $fileHandle, error(), and init().
|
private |
Definition at line 210 of file MSCompoundFileReader.php.
Referenced by getFatSector(), readDifat(), and unpack().
|
private |
Definition at line 164 of file MSCompoundFileReader.php.
References unpack().
Referenced by readDirectory().
|
private |
Definition at line 239 of file MSCompoundFileReader.php.
Referenced by __construct(), fseek(), getFatSector(), init(), readDirectory(), and readOffset().
|
private |
Definition at line 243 of file MSCompoundFileReader.php.
References error(), and fseek().
Referenced by fseek(), and readOffset().
|
private |
Definition at line 282 of file MSCompoundFileReader.php.
References $fat, bin2dec(), error(), and readSector().
Referenced by getNextSectorIdFromFat().
|
private |
Definition at line 275 of file MSCompoundFileReader.php.
References getFatSector().
Referenced by readDirectory().
|
private |
Definition at line 127 of file MSCompoundFileReader.php.
References error(), readDifat(), readDirectory(), and unpackOffset().
Referenced by __construct().
|
private |
Definition at line 252 of file MSCompoundFileReader.php.
References bin2dec(), and readSector().
Referenced by init().
|
private |
Definition at line 298 of file MSCompoundFileReader.php.
References $type, decodeClsid(), error(), getNextSectorIdFromFat(), readSector(), and unpack().
Referenced by init().
|
static |
Read a file by name.
string | $fileName | The full path to the file |
Definition at line 78 of file MSCompoundFileReader.php.
References ERROR_FILE_OPEN, and readHandle().
|
static |
Read from an open seekable handle.
resource | $fileHandle | The file handle |
Definition at line 102 of file MSCompoundFileReader.php.
References $fileHandle.
Referenced by readFile().
|
private |
Definition at line 219 of file MSCompoundFileReader.php.
References error(), and fseek().
Referenced by readSector(), and unpackOffset().
|
private |
Definition at line 234 of file MSCompoundFileReader.php.
References readOffset(), and sectorOffset().
Referenced by getFatSector(), readDifat(), and readDirectory().
|
private |
Definition at line 160 of file MSCompoundFileReader.php.
Referenced by readSector().
|
private |
string | $block | |
int | $offset | |
int[] | $struct |
Definition at line 197 of file MSCompoundFileReader.php.
References bin2dec().
Referenced by decodeClsid(), readDirectory(), and unpackOffset().
|
private |
int | $offset | |
int[] | $struct |
Definition at line 186 of file MSCompoundFileReader.php.
References readOffset(), and unpack().
Referenced by init().
|
private |
Definition at line 42 of file MSCompoundFileReader.php.
|
private |
Definition at line 37 of file MSCompoundFileReader.php.
|
private |
Definition at line 38 of file MSCompoundFileReader.php.
|
private |
Definition at line 43 of file MSCompoundFileReader.php.
Referenced by getFatSector().
|
private |
Definition at line 33 of file MSCompoundFileReader.php.
|
private |
Definition at line 44 of file MSCompoundFileReader.php.
|
private |
Definition at line 34 of file MSCompoundFileReader.php.
|
private |
Definition at line 35 of file MSCompoundFileReader.php.
|
private |
Definition at line 36 of file MSCompoundFileReader.php.
|
staticprivate |
Definition at line 58 of file MSCompoundFileReader.php.
|
private |
Definition at line 41 of file MSCompoundFileReader.php.
|
private |
Definition at line 39 of file MSCompoundFileReader.php.
const MSCompoundFileReader::ERROR_FILE_OPEN = 1 |
Definition at line 51 of file MSCompoundFileReader.php.
Referenced by readFile().
const MSCompoundFileReader::ERROR_INVALID_FORMAT = 6 |
Definition at line 56 of file MSCompoundFileReader.php.
const MSCompoundFileReader::ERROR_INVALID_SIGNATURE = 4 |
Definition at line 54 of file MSCompoundFileReader.php.
const MSCompoundFileReader::ERROR_READ = 3 |
Definition at line 53 of file MSCompoundFileReader.php.
const MSCompoundFileReader::ERROR_READ_PAST_END = 5 |
Definition at line 55 of file MSCompoundFileReader.php.
const MSCompoundFileReader::ERROR_SEEK = 2 |
Definition at line 52 of file MSCompoundFileReader.php.
const MSCompoundFileReader::TYPE_ROOT = 5 |
Definition at line 49 of file MSCompoundFileReader.php.
const MSCompoundFileReader::TYPE_STORAGE = 1 |
Definition at line 47 of file MSCompoundFileReader.php.
const MSCompoundFileReader::TYPE_STREAM = 2 |
Definition at line 48 of file MSCompoundFileReader.php.
const MSCompoundFileReader::TYPE_UNALLOCATED = 0 |
Definition at line 46 of file MSCompoundFileReader.php.