PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

導入> <lzf_optimized_for
Last updated: Fri, 29 Aug 2008

view this page in

Phar

phpdoc:classref

Phar クラス

導入

Phar クラスは、phar アーカイブへのアクセスや作成のための高レベルインターフェイスを提供します。

クラス概要

Phar
class Phar extends DirectoryIterator implements Countable , ArrayAccess {
/* プロパティ */
/* メソッド */
bool addEmptyDir ( string $dirname )
bool addFile ( string $file [, string $localname ] )
bool addFromString ( string $localname , string $contents )
string apiVersion ( void )
array buildFromDirectory ( string $base_dir [, string $regex ] )
array buildFromIterator ( Iterator $iter [, string $base_directory ] )
bool canCompress ([ int $type ] )
bool canWrite ( void )
object compress ( int $compression [, string $extension ] )
bool compressAllFilesBZIP2 ( void )
bool compressAllFilesGZ ( void )
bool compressFiles ( int $compression )
void __construct ( string $fname [, int $flags [, string $alias ]] )
PharData convertToData ([ int $format [, int $compression [, string $extension ]]] )
Phar convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
bool copy ( string $oldfile , string $newfile )
int count ( void )
string createDefaultStub ( void )
object decompress ([ string $extension ] )
bool decompressFiles ( void )
int delMetadata ( void )
int delete ( string $entry )
int extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
int getMetaData ( void )
bool getModified ( void )
array getSignature ( void )
string getStub ( void )
array getSupportedCompression ( void )
array getSupportedSignatures ( void )
string getVersion ( void )
int hasMetadata ( void )
void interceptFileFuncs ( void )
bool isBuffering ( void )
mixed isCompressed ( void )
bool isFileFormat ( int $format )
bool isValidPharFilename ( string $filename [, bool $executable ] )
bool isWritable ( void )
mixed loadPhar ( string $filename [, string $alias ] )
mixed mapPhar ([ string $alias [, int $dataoffset ]] )
void mount ( string $pharpath , string $externalpath )
void mungServer ( array $munglist )
bool offsetExists ( string $offset )
int offsetGet ( string $offset )
void offsetSet ( string $offset , string $value )
bool offsetUnset ( string $offset )
bool running ([ bool $retphar ] )
bool setAlias ( string $alias )
void setDefaultStub ([ string $index [, string $webindex ]] )
void setMetadata ( mixed $metadata )
array setSignatureAlgorithm ( int $sigtype [, string $privatekey ] )
void setStub ( string $stub )
void startBuffering ( void )
void stopBuffering ( void )
bool uncompressAllFiles ( void )
bool unlinkArchive ( string $archive )
void webPhar ( string $alias , string $index , string $f404 , array $mimetypes , array $rewrites )
}
/phpdoc:classref phpdoc:classref

PharData クラス

導入

PharData クラスは、実行可能形式でない tar アーカイブや zip アーカイブへのアクセスや作成のための高レベルインターフェイスを提供します。 これらのアーカイブにはスタブが含まれておらず、 phar 拡張モジュールから実行することはできません。 そのため、PharData クラスによる通常の zip および tar ファイルの作成や 操作は php.ini の phar.readonly1 であっても可能です。

クラス概要

PharData
class PharData extends Phar {
/* プロパティ */
/* メソッド */
bool addEmptyDir ( string $dirname )
bool Phar::addFile ( string $file [, string $localname ] )
bool addFromString ( string $localname , string $contents )
array Phar::buildFromDirectory ( string $base_dir [, string $regex ] )
array buildFromIterator ( Iterator $iter [, string $base_directory ] )
object compress ( int $compression , string $extension )
bool compressFiles ( int $compression )
void __construct ( string $fname [, int $flags ] )
PharData convertToData ([ int $format [, int $compression [, string $extension ]]] )
Phar convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
bool copy ( string $oldfile , string $newfile )
object decompress ([ string $extension ] )
bool decompressFiles ( void )
int delMetadata ( void )
int delete ( string $entry )
int extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
bool isWritable ( void )
void offsetSet ( string $offset , string $value )
bool offsetUnset ( string $offset )
bool setAlias ( string $alias )
void setDefaultStub ([ string $index [, string $webindex ]] )
void Phar::setMetadata ( mixed $metadata )
array Phar::setSignatureAlgorithm ( int $sigtype )
void setStub ( string $stub )
/* 継承したメソッド */
bool Phar::addEmptyDir ( string $dirname )
bool Phar::addFile ( string $file [, string $localname ] )
bool Phar::addFromString ( string $localname , string $contents )
string Phar::apiVersion ( void )
array Phar::buildFromDirectory ( string $base_dir [, string $regex ] )
array Phar::buildFromIterator ( Iterator $iter [, string $base_directory ] )
bool Phar::canCompress ([ int $type ] )
bool Phar::canWrite ( void )
object Phar::compress ( int $compression [, string $extension ] )
bool Phar::compressFiles ( int $compression )
void Phar::__construct ( string $fname [, int $flags [, string $alias ]] )
PharData Phar::convertToData ([ int $format [, int $compression [, string $extension ]]] )
Phar Phar::convertToExecutable ([ int $format [, int $compression [, string $extension ]]] )
bool Phar::copy ( string $oldfile , string $newfile )
int Phar::count ( void )
string Phar::createDefaultStub ( void )
object Phar::decompress ([ string $extension ] )
bool Phar::decompressFiles ( void )
int Phar::delMetadata ( void )
int Phar::delete ( string $entry )
int Phar::extractTo ( string $pathto [, string|array $files [, bool $overwrite ]] )
int Phar::getMetaData ( void )
bool Phar::getModified ( void )
array Phar::getSignature ( void )
string Phar::getStub ( void )
string Phar::getVersion ( void )
int Phar::hasMetadata ( void )
bool Phar::isBuffering ( void )
mixed Phar::isCompressed ( void )
bool Phar::isFileFormat ( int $format )
bool Phar::isValidPharFilename ( string $filename [, bool $executable ] )
bool Phar::isWritable ( void )
mixed Phar::loadPhar ( string $filename [, string $alias ] )
mixed Phar::mapPhar ([ string $alias [, int $dataoffset ]] )
void Phar::mount ( string $pharpath , string $externalpath )
void Phar::mungServer ( array $munglist )
bool Phar::offsetExists ( string $offset )
int Phar::offsetGet ( string $offset )
void Phar::offsetSet ( string $offset , string $value )
bool Phar::offsetUnset ( string $offset )
bool Phar::running ([ bool $retphar ] )
bool Phar::setAlias ( string $alias )
void Phar::setDefaultStub ([ string $index [, string $webindex ]] )
void Phar::setMetadata ( mixed $metadata )
array Phar::setSignatureAlgorithm ( int $sigtype [, string $privatekey ] )
void Phar::setStub ( string $stub )
void Phar::startBuffering ( void )
void Phar::stopBuffering ( void )
bool Phar::unlinkArchive ( string $archive )
void Phar::webPhar ( string $alias , string $index , string $f404 , array $mimetypes , array $rewrites )
}
/phpdoc:classref phpdoc:classref

PharFileInfo クラス

導入

PharFileInfo クラスは、 phar アーカイブ内の個々のファイルのコンテンツや属性への 高レベルインターフェイスを提供します。

クラス概要

PharFileInfo
class PharFileInfo extends SplFileInfo {
/* プロパティ */
/* メソッド */
void chmod ( int $permissions )
bool compress ( int $compression )
void __construct ( string $entry )
bool decompress ( void )
bool delMetadata ( void )
int getCRC32 ( void )
int getCompressedSize ( void )
int getMetaData ( void )
int getPharFlags ( void )
int hasMetadata ( void )
bool isCRCChecked ( void )
bool isCompressed ( void )
bool isCompressedBZIP2 ( void )
bool isCompressedGZ ( void )
bool setCompressedBZIP2 ( void )
bool setCompressedGZ ( void )
void setMetaData ( mixed $metadata )
bool setUncompressed ( void )
}
/phpdoc:classref phpdoc:exceptionref

PharException クラス

導入

PharException クラスは、try/catch ブロックで使用するための phar 固有の例外クラスです。

クラス概要

PharException
class PharException extends Exception {
/* プロパティ */
}
/phpdoc:exceptionref

add a note add a note User Contributed Notes
Phar
There are no user contributed notes for this page.

導入> <lzf_optimized_for
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites