Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/cch/www/pear/PEAR/Installer.php
PEAR Repository -

PEAR_Installer

PEAR
   |
  +-- PEAR_Installer

Administration class used to install PEAR packages and maintain the

 

private class PEAR_Installer extends PEAR

Administration class used to install PEAR packages and maintain the
class definition cache.

AuthorsStig Bakken <ssb@fast.no>
SincePHP 4.0.2

 

Methods inherited from PEAR

pear, _pear, iserror, pear_error, getmode, getcallback, getmessage, getcode, gettype, getdebuginfo, tostring, _pear_call_destructors

Public Method Summary

void

PEAR_Installer()

Private Method Summary

bool

install( $pkgfile)

Installs the files within the package file specified.
array

classesDeclaredBy( $file)

Find out which new classes are defined by a file.
bool

lockDir( $dir)

Uses advisory locking (flock) to temporarily claim $dir as its
void

_PEAR_Installer()

void

cacheLock()

void

cacheUnlock()

void

cacheLoad( $file)

void

cacheSave()

void

cacheUpdateFrom( $file)

void

start_handler( $xp, $name, $attribs)

void

end_handler( $xp, $name)

void

char_handler( $xp, $data)

void

PEAR_Installer_Error( $msg)

Fields inherited from PEAR

$_debug, $error_message_prefix, $error_prepend, $error_append, $mode, $level, $code, $message, $debuginfo, $file, $line

Private Field Summary

unknown

$element_stack

stack of elements, gives some sort of XML context *
unknown

$current_element

name of currently parsed XML element *
array

$pkginfo

assoc with information about the package *
unknown

$pkgdir

name of the package directory, for example Foo-1.0 *
string

$pear_phpdir

directory where PHP code files go *
string

$pear_extdir

directory where PHP extension files go *
string

$pear_docdir

directory where documentation goes *
string

$destdir

directory where the package wants to put files, relative
to one of the three previous dirs
boolean

$debug

debug mode (boolean) *
array

$cache

class loading cache *
unknown

$tmpdir

temporary directory *
unknown

$cache_fp

file pointer for cache file if open *

Included files Summary, Type: include

$file

Public Method Details

PEAR_Installer

public void PEAR_Installer( )

 

Returns void


Private Method Details

install

private bool install( $pkgfile )

  Installs the files within the package file specified.

Parameter
$pkgfile
Returns bool

true if successful, false if not


classesDeclaredBy

private array classesDeclaredBy( $file )

  Find out which new classes are defined by a file.

Parameter
$file
Returns array

classes that were defined


lockDir

private bool lockDir( $dir )

  Uses advisory locking (flock) to temporarily claim $dir as its
own.

Parameter
$dir
Returns bool

true if successful, false if not


_PEAR_Installer

private void _PEAR_Installer( )

 

Returns void


cacheLock

private void cacheLock( )

 

Returns void


cacheUnlock

private void cacheUnlock( )

 

Returns void


cacheLoad

private void cacheLoad( $file )

 

Parameter
$file
Returns void


cacheSave

private void cacheSave( )

 

Returns void


cacheUpdateFrom

private void cacheUpdateFrom( $file )

 

Parameter
$file
Returns void


start_handler

private void start_handler( $xp, $name, $attribs )

 

Parameter
$xp
$name
$attribs
Returns void


end_handler

private void end_handler( $xp, $name )

 

Parameter
$xp
$name
Returns void


char_handler

private void char_handler( $xp, $data )

 

Parameter
$xp
$data
Returns void


PEAR_Installer_Error

private void PEAR_Installer_Error( $msg )

 

Parameter
$msg
Returns void


Private Field Details

$element_stack

private unknown $element_stack

>>unknown<<


$current_element

private unknown $current_element

>>unknown<<


$pkginfo

private array $pkginfo

>>array()<<


$pkgdir

private unknown $pkgdir

>>unknown<<


$pear_phpdir

private string $pear_phpdir

>>PEAR_INSTALL_DIR<<


$pear_extdir

private string $pear_extdir

>>PEAR_EXTENSION_DIR<<


$pear_docdir

private string $pear_docdir

>>''<<


$destdir

private string $destdir

>>''<<


$debug

private boolean $debug

>>false<<


$cache

private array $cache

>>array()<<


$tmpdir

private unknown $tmpdir

>>unknown<<


$cache_fp

private unknown $cache_fp

>>unknown<<


Included Files, Type: include

$file

include( $file )


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta