Phar::offsetExists

(PHP >= 5.3.0, PECL phar >= 1.0.0) determines whether a file exists in the phar public bool Phar::offsetExists ( string $offset ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. offsetExists() is called whenever isset() is called. Parameters: offset The filename (rel

Phar::offsetGet

(PHP >= 5.3.0, PECL phar >= 1.0.0) Gets a PharFileInfo object for a specific file public int Phar::offsetGet ( string $offset ) This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. Phar::offsetGet() is used for retrieving files from a Phar archive. Parameters: offset The fi

Phar::offsetSet

(PHP >= 5.3.0, PECL phar >= 1.0.0) set the contents of an internal file to those of an external file public void Phar::offsetSet ( string $offset, string $value ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents o

Phar::offsetUnset

(PHP >= 5.3.0, PECL phar >= 1.0.0) remove a file from a phar public bool Phar::offsetUnset ( string $offset ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. This is an implementation of the ArrayAccess interface allowing direct manipulation of the contents of a Phar archive using array access brackets. offsetUn

Phar::running

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns the full path on disk or full phar URL to the currently executing Phar archive final public static string Phar::running ([ bool $retphar = true ] ) Returns the full path to the running phar archive. This is intended for use much like the __FILE__ magic constant, and only has effect inside an executing phar archive. Inside the stub of an archive, Phar::running() returns "".

Phar::setAlias

(PHP >= 5.3.0, PECL phar >= 1.2.1) Set the alias for the Phar archive public bool Phar::setAlias ( string $alias ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Set the alias for the Phar archive, and write it as the permanent alias for this phar archive. An alias can be used internally to a phar archive to en

Phar::setDefaultStub

(Unknown) Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader public bool Phar::setDefaultStub ([ string $index [, string $webindex ]] ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. This method is a convenience method that combines the functionality of Phar::createDefaultStub() and

Phar::setMetadata

(PHP >= 5.3.0, PECL phar >= 1.0.0) Sets phar archive meta-data public void Phar::setMetadata ( mixed $metadata ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Phar::setMetadata() should be used to store customized data that describes something about the phar archive as a complete entity. PharFileInfo::setMeta

Phar::setSignatureAlgorithm

(PHP >= 5.3.0, PECL phar >= 1.1.0) set the signature algorithm for a phar and apply it. public void Phar::setSignatureAlgorithm ( int $sigtype [, string $privatekey ] ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. set the signature algorithm for a phar and apply it. The signature algorithm must be one of Pha

Phar::setStub

(PHP >= 5.3.0, PECL phar >= 1.0.0) Used to set the PHP loader or bootstrap stub of a Phar archive public bool Phar::setStub ( string $stub [, int $len = -1 ] ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. This method is used to add a PHP bootstrap loader stub to a new Phar archive, or to replace the loader s