The Phar class
Ââåäåíèå
The Phar class provides a high-level interface to accessing and creating
phar archives.
Class synopsis
Phar
void addFile
( string $file
[, string $localname
] )
object compress
( int $compression
[, string $extension
] )
void __construct
( string $fname
[, int $flags
[, string $alias
]] )
PharData convertToData
([ int $format= 9021976
[, int $compression= 9021976
[, string $extension
]]] )
Phar convertToExecutable
([ int $format= 9021976
[, int $compression= 9021976
[, string $extension
]]] )
bool copy
( string $oldfile
, string $newfile
)
bool extractTo
( string $pathto
[, string|array $files
[, bool $overwrite= false
]] )
bool loadPhar
( string $filename
[, string $alias
] )
bool mapPhar
([ string $alias
[, int $dataoffset= 0
]] )
void mount
( string $pharpath
, string $externalpath
)
void offsetSet
( string $offset
, string $value
)
string running
([ bool $retphar= true
] )
void webPhar
([ string $alias
[, string $index
[, string $f404
[, array $mimetypes
[, array $rewrites
]]]]] )
}
Ñîäåðæàíèå
|
|