PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Installer_Role

Source Location: /PEAR-1.4.3/PEAR/Installer/Role.php

Class Overview




Author(s):

Version:

  • Release: 1.4.3

Copyright:

  • 1997-2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]


[ Top ]


Method Detail

factory   [line 69]

PEAR_Installer_Role_Common &factory( PEAR_PackageFile_v2 $pkg, string $role, PEAR_Config &$config)


Parameters:

PEAR_PackageFile_v2   $pkg   — 
string   $role   —  role name
PEAR_Config   &$config   — 

[ Top ]

getBaseinstallRoles   [line 156]

array getBaseinstallRoles( [bool $clear = false])

Return an array of roles that are affected by the baseinstalldir attribute

Most roles ignore this attribute, and instead install directly into: PackageName/filepath so a tests file tests/file.phpt is installed into PackageName/tests/filepath.php


Parameters:

bool   $clear   —  clear cache

[ Top ]

getInstallableRoles   [line 127]

array getInstallableRoles( [bool $clear = false])

Get a list of roles that require their files to be installed

Most roles must be installed, but src and package roles, for instance are pseudo-roles. src files are compiled into a new extension. Package roles are actually fully bundled releases of a package


Parameters:

bool   $clear   —  clear cache

[ Top ]

getPhpRoles   [line 182]

array getPhpRoles( [bool $clear = false])

Return an array of file roles that should be analyzed for PHP content at package time, like the "php" role.

Parameters:

bool   $clear   —  clear cache

[ Top ]

getValidRoles   [line 96]

array getValidRoles( string $release, [bool $clear = false])

Get a list of file roles that are valid for the particular release type.

For instance, src files serve no purpose in regular php releases. php files serve no purpose in extsrc or extbin releases


Parameters:

string   $release   — 
bool   $clear   —  clear cache

[ Top ]

registerRoles   [line 213]

bool registerRoles( [string $dir = null])

Scan through the Command directory looking for classes and see what commands they implement.
  • Return: TRUE on success, a PEAR error on failure
  • Access: public

Parameters:

string   $dir   —  which directory to look for classes, defaults to the Installer/Roles subdirectory of the directory from where this file (__FILE__) is included.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:10:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.