Class

eZPackage

class eZPackage

Constants

VERSION

DEVELOPMENT

USE_CACHE

CACHE_CODE_DATE

STATUS_ALREADY_EXISTS

STATUS_INVALID_NAME

NON_INTERACTIVE

Properties

$isInstalled
$Parameters

Methods

__construct(array $parameters = array(), string|bool $repositoryPath = false)

Constructor

remove()

Removes the package directory and all it's subfiles/directories.

setParameters($parameters = array())

attributes()

setAttribute($attributeName, $attributeValue)

hasAttribute($attributeName)

attribute($attributeName)

canRead()

canExport()

canImport()

canInstall()

canUsePackagePolicyFunction($functionName)

appendMaintainer($name, $email, $role = false)

appendDocument($name, $mimeType = false, $os = false, $audience = false, $create = false, $data = false)

appendGroup($name)

appendChange($person, $email, $changes, $release = false, $timestamp = null)

fileStorePath($fileItem, $collectionName, $path = false, $installVariables = array())

fileItemPath($fileItem, $collectionName, $path = false)

fileList($collectionName)

thumbnailList($collectionName)

fileCount()

appendFile($file, $type, $role, $design, $filePath, $collection, $subDirectory = null, $md5 = null, $copyFile = false, $modified = null, $fileType = false, $roleValue = false, $variableName = false, $packagePath = false)

appendProvides($type, $name, $value, $parameters = false)

appendDependency($dependencySection, $parameters)

dependencyOperatorText($dependencyItem)

createDependencyText($cli, $dependencyItem, $dependencySection)

groupDependencyItemsByType($dependencyItems)

dependencyItems($dependencySection, $parameters = false)

installItemsList($type = false, $os = false, $name = false, $isInstall = true)

appendInstall($type, $name, $os = false, $isInstall = true, $filename = false, $subdirectory = false, $parameters = false)

setPackager($timestamp = false, $host = false, $packager = false)

setRelease($version = false, $release = false, $timestamp = false, $licence = false, $state = false)

toString()

storeCache($directory = false)

store()

storePackageFile($path, $storeCache = true)

exportToArchive($archivePath)

exportName()

storeToFile($filename)

path()

currentRepositoryPath()

fetchDependentPackages($dependencyType, $failedList)

setCurrentRepositoryInformation($information)

currentRepositoryInformation()

installItem($item, $installParameters)

bool install(array $installParameters)

Installs all items in the package

uninstallItem($item, $uninstallParameters)

uninstall($uninstallParameters = array())

parseDOMTree(DOMDocument $dom)

parseDependencyTree($dependenciesList, $dependencySection)

parseInstallTree($installList, $isInstall)

domStructure()

createInstallTree($installNode, $dom, $list, $installType)

createDependencyTree($dependenciesNode, $dependencyType, $list)

appendSimpleFile($key, $filepath)

simpleFilePath($fileKey)

getVersion()

Returns package version.

setInstalled($installed = true)

isInstalled()

getInstallState()

languageInfo($withLanguageNames = false)

defaultLanguageMap()

Details

at line 37
public __construct(array $parameters = array(), string|bool $repositoryPath = false)

Constructor

Parameters

array $parameters
string|bool $repositoryPath

at line 49
public remove()

Removes the package directory and all it's subfiles/directories.

at line 62
public setParameters($parameters = array())

Parameters

$parameters

at line 179
public attributes()

at line 203
public setAttribute($attributeName, $attributeValue)

Parameters

$attributeName
$attributeValue

at line 225
public hasAttribute($attributeName)

Parameters

$attributeName

at line 233
public attribute($attributeName)

Parameters

$attributeName

at line 305
public canRead()

at line 310
public canExport()

at line 315
public canImport()

at line 320
public canInstall()

at line 325
public canUsePackagePolicyFunction($functionName)

Parameters

$functionName

at line 456
public appendMaintainer($name, $email, $role = false)

Parameters

$name
$email
$role

at line 463
public appendDocument($name, $mimeType = false, $os = false, $audience = false, $create = false, $data = false)

Parameters

$name
$mimeType
$os
$audience
$create
$data

at line 481
public appendGroup($name)

Parameters

$name

at line 487
public appendChange($person, $email, $changes, $release = false, $timestamp = null)

Parameters

$person
$email
$changes
$release
$timestamp

at line 535
public fileStorePath($fileItem, $collectionName, $path = false, $installVariables = array())

Parameters

$fileItem
$collectionName
$path
$installVariables

at line 608
public fileItemPath($fileItem, $collectionName, $path = false)

Parameters

$fileItem
$collectionName
$path

at line 631
public fileList($collectionName)

Parameters

$collectionName

at line 639
public thumbnailList($collectionName)

Parameters

$collectionName

at line 656
public fileCount()

at line 666
public appendFile($file, $type, $role, $design, $filePath, $collection, $subDirectory = null, $md5 = null, $copyFile = false, $modified = null, $fileType = false, $roleValue = false, $variableName = false, $packagePath = false)

Parameters

$file
$type
$role
$design
$filePath
$collection
$subDirectory
$md5
$copyFile
$modified
$fileType
$roleValue
$variableName
$packagePath

at line 737
public appendProvides($type, $name, $value, $parameters = false)

Parameters

$type
$name
$value
$parameters

at line 754
public appendDependency($dependencySection, $parameters)

Parameters

$dependencySection
$parameters

at line 764
public dependencyOperatorText($dependencyItem)

Parameters

$dependencyItem

at line 769
public createDependencyText($cli, $dependencyItem, $dependencySection)

Parameters

$cli
$dependencyItem
$dependencySection

at line 787
public groupDependencyItemsByType($dependencyItems)

Parameters

$dependencyItems

at line 802
public dependencyItems($dependencySection, $parameters = false)

Parameters

$dependencySection
$parameters

at line 840
public installItemsList($type = false, $os = false, $name = false, $isInstall = true)

Parameters

$type
$os
$name
$isInstall

at line 879
public appendInstall($type, $name, $os = false, $isInstall = true, $filename = false, $subdirectory = false, $parameters = false)

Parameters

$type
$name
$os
$isInstall
$filename
$subdirectory
$parameters

at line 923
public setPackager($timestamp = false, $host = false, $packager = false)

Parameters

$timestamp
$host
$packager

at line 941
public setRelease($version = false, $release = false, $timestamp = false, $licence = false, $state = false)

Parameters

$version
$release
$timestamp
$licence
$state

at line 970
public toString()

at line 982
public storeCache($directory = false)

Parameters

$directory

at line 1003
public store()

at line 1012
public storePackageFile($path, $storeCache = true)

Parameters

$path
$storeCache

at line 1042
public exportToArchive($archivePath)

Parameters

$archivePath

at line 1216
public exportName()

at line 1224
public storeToFile($filename)

Parameters

$filename

at line 1454
public path()

at line 1464
public currentRepositoryPath()

at line 1564
public fetchDependentPackages($dependencyType, $failedList)

Parameters

$dependencyType
$failedList

at line 1664
public setCurrentRepositoryInformation($information)

Parameters

$information

at line 1675
public currentRepositoryInformation()

at line 1809
public installItem($item, $installParameters)

Parameters

$item
$installParameters

at line 1864
public bool install(array $installParameters)

Installs all items in the package

Parameters

array $installParameters

Return Value

bool true if all items installed correctly, false otherwise

at line 1884
public uninstallItem($item, $uninstallParameters)

Parameters

$item
$uninstallParameters

at line 1942
public uninstall($uninstallParameters = array())

Parameters

$uninstallParameters

at line 1969
public parseDOMTree(DOMDocument $dom)

Parameters

DOMDocument $dom

at line 2244
public parseDependencyTree($dependenciesList, $dependencySection)

Parameters

$dependenciesList
$dependencySection

at line 2274
public parseInstallTree($installList, $isInstall)

Parameters

$installList
$isInstall

at line 2302
public domStructure()

at line 2736
public createInstallTree($installNode, $dom, $list, $installType)

Parameters

$installNode
$dom
$list
$installType

at line 2778
public createDependencyTree($dependenciesNode, $dependencyType, $list)

Parameters

$dependenciesNode
$dependencyType
$list

at line 2842
public appendSimpleFile($key, $filepath)

Parameters

$key
$filepath

at line 2872
public simpleFilePath($fileKey)

Parameters

$fileKey

at line 2894
public getVersion()

Returns package version.

Combines package version number and release number.

\static \return Package version (string).

at line 2903
public setInstalled($installed = true)

Parameters

$installed

at line 2927
public isInstalled()

at line 2932
public getInstallState()

at line 2999
public languageInfo($withLanguageNames = false)

Parameters

$withLanguageNames

at line 3062
public defaultLanguageMap()