Documentation

OxidInstaller extends BaseInstaller
in package

Table of Contents

VENDOR_PATTERN  = '/^modules\/(?P<vendor>.+)\/.+/'
$composer  : mixed
$io  : mixed
$locations  : mixed
$package  : mixed
__construct()  : mixed
Initializes base installer.
getInstallPath()  : void
getInstallPath
getLocations()  : array<string|int, mixed>
Gets the installer's locations
inflectPackageVars()  : array<string|int, mixed>
For an installer to override to modify the vars per installer.
mapCustomInstallPaths()  : string
Search through a passed paths array for a custom install path.
prepareVendorDirectory()  : void
prepareVendorDirectory
templatePath()  : string
Replace vars in a path

Constants

VENDOR_PATTERN

public mixed VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/'

Properties

$locations

protected mixed $locations = array('module' => 'modules/{$name}/', 'theme' => 'application/views/{$name}/', 'out' => 'out/{$name}/')

Methods

getLocations()

Gets the installer's locations

public getLocations() : array<string|int, mixed>
Return values
array<string|int, mixed>

inflectPackageVars()

For an installer to override to modify the vars per installer.

public inflectPackageVars(array<string|int, mixed> $vars) : array<string|int, mixed>
Parameters
$vars : array<string|int, mixed>
Return values
array<string|int, mixed>

mapCustomInstallPaths()

Search through a passed paths array for a custom install path.

protected mapCustomInstallPaths(array<string|int, mixed> $paths, string $name, string $type[, string $vendor = NULL ]) : string
Parameters
$paths : array<string|int, mixed>
$name : string
$type : string
$vendor : string = NULL

= NULL

Return values
string

prepareVendorDirectory()

prepareVendorDirectory

protected prepareVendorDirectory(string $installPath) : void

Makes sure there is a vendormetadata.php file inside the vendor folder if there is a vendor folder.

Parameters
$installPath : string
Return values
void

templatePath()

Replace vars in a path

protected templatePath(string $path[, array<string|int, mixed> $vars = array() ]) : string
Parameters
$path : string
$vars : array<string|int, mixed> = array()
Return values
string

Search results