PHP Classes & Interfaces


Name: Phar

Date: May-27-2017
PHP version: 5.3.3
Type: Internal

class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, SeekableIterator, Traversable, Iterator, Countable, ArrayAccess

Public Methods

public __construct ( $filename, $flags, $alias, $fileformat )

public __destruct ( )

public addEmptyDir ( $dirname )

public addFile ( $filename, $localname )

public addFromString ( $localname, $contents )

public buildFromDirectory ( $base_dir, $regex )

public buildFromIterator ( $iterator, $base_directory )

public compressFiles ( $compression_type )

public decompressFiles ( )

public compress ( $compression_type, $file_ext )

public decompress ( $file_ext )

public convertToExecutable ( $format, $compression_type, $file_ext )

public convertToData ( $format, $compression_type, $file_ext )

public copy ( $newfile, $oldfile )

public count ( )

public delete ( $entry )

public delMetadata ( )

public extractTo ( $pathto, $files, $overwrite )

public getAlias ( )

public getPath ( )

public getMetadata ( )

public getModified ( )

public getSignature ( )

public getStub ( )

public getVersion ( )

public hasMetadata ( )

public isBuffering ( )

public isCompressed ( )

public isFileFormat ( $fileformat )

public isWritable ( )

public offsetExists ( $entry )

public offsetGet ( $entry )

public offsetSet ( $entry, $value )

public offsetUnset ( $entry )

public setAlias ( $alias )

public setDefaultStub ( $index, $webindex )

public setMetadata ( $metadata )

public setSignatureAlgorithm ( $algorithm, $privatekey )

public setStub ( $newstub, $maxlen )

public startBuffering ( )

public stopBuffering ( )

final public static apiVersion ( )

final public static canCompress ( )

final public static canWrite ( )

final public static createDefaultStub ( $index, $webindex )

final public static getSupportedCompression ( )

final public static getSupportedSignatures ( )

final public static interceptFileFuncs ( )

final public static isValidPharFilename ( )

final public static loadPhar ( $filename, $alias )

final public static mapPhar ( $alias, $offset )

final public static running ( $retphar )

final public static mount ( $inphar, $externalfile )

final public static mungServer ( $munglist )

final public static unlinkArchive ( $archive )

final public static webPhar ( $alias, $index, $f404, $mimetypes, $rewrites )

public hasChildren ( $allow_links )

public getChildren ( )

public getSubPath ( )

public getSubPathname ( )

public rewind ( )

public next ( )

public key ( )

public current ( )

public getFlags ( )

public setFlags ( $flags )

public getFilename ( )

public getBasename ( $suffix )

public isDot ( )

public valid ( )

public seek ( $position )

public __toString ( )

public getPathname ( )

public getPerms ( )

public getInode ( )

public getSize ( )

public getOwner ( )

public getGroup ( )

public getATime ( )

public getMTime ( )

public getCTime ( )

public getType ( )

public isReadable ( )

public isExecutable ( )

public isFile ( )

public isDir ( )

public isLink ( )

public getLinkTarget ( )

public getRealPath ( )

public getFileInfo ( $class_name )

public getPathInfo ( $class_name )

public openFile ( $open_mode, $use_include_path, $context )

public setFileClass ( $class_name )

public setInfoClass ( $class_name )

Constants

const CURRENT_MODE_MASK = 240

const CURRENT_AS_PATHNAME = 32

const CURRENT_AS_FILEINFO = 0

const CURRENT_AS_SELF = 16

const KEY_MODE_MASK = 3840

const KEY_AS_PATHNAME = 0

const FOLLOW_SYMLINKS = 512

const KEY_AS_FILENAME = 256

const NEW_CURRENT_AND_KEY = 256

const SKIP_DOTS = 4096

const UNIX_PATHS = 8192

const BZ2 = 8192

const GZ = 4096

const NONE = 0

const PHAR = 1

const TAR = 2

const ZIP = 3

const COMPRESSED = 61440

const PHP = 0

const PHPS = 1

const MD5 = 1

const OPENSSL = 16

const SHA1 = 2

const SHA256 = 3

const SHA512 = 4