kernel/classes/ezpackage.php

Show: inherited
Table of Contents

File containing the eZPackage class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\eZPackage

Package: kernel

File containing the eZPackage class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Constants

Constant  VERSION = '3.5.2'
Constant  DEVELOPMENT = false
Constant  USE_CACHE = true
Constant  CACHE_CODE_DATE = 1069339607
Constant  STATUS_ALREADY_EXISTS = 1
Constant  STATUS_INVALID_NAME = 2
Constant  NON_INTERACTIVE = -1

Properties

Propertypublic  $Parameters= ''
Details
Type
n/a
Propertypublic  $isInstalled= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublicappendChange(  $person,  $email,  $changes,  $release = false,  $timestamp = null ) : void

Parameters
Name Type Description
$person
$email
$changes
$release
$timestamp
methodpublicappendDependency(  $dependencySection,  $parameters ) : void

Parameters
Name Type Description
$dependencySection
$parameters
methodpublicappendDocument(  $name,  $mimeType = false,  $os = false,  $audience = false,  $create = false,  $data = false ) : void

Parameters
Name Type Description
$name
$mimeType
$os
$audience
$create
$data
methodpublicappendFile(  $file,  $type,  $role,  $design,  $filePath,  $collection,  $subDirectory = null,  $md5 = null,  $copyFile = false,  $modified = null,  $fileType = false,  $roleValue = false,  $variableName = false,  $packagePath = false ) : void

Parameters
Name Type Description
$file
$type
$role
$design
$filePath
$collection
$subDirectory
$md5
$copyFile
$modified
$fileType
$roleValue
$variableName
$packagePath
methodpublicappendGroup(  $name ) : void

Parameters
Name Type Description
$name
methodpublicappendInstall(  $type,  $name,  $os = false,  $isInstall = true,  $filename = false,  $subdirectory = false,  $parameters = false ) : void

Parameters
Name Type Description
$type
$name
$os
$isInstall
$filename
$subdirectory
$parameters
methodpublicappendMaintainer(  $name,  $email,  $role = false ) : void

Parameters
Name Type Description
$name
$email
$role
methodpublicappendProvides(  $type,  $name,  $value,  $parameters = false ) : void

Parameters
Name Type Description
$type
$name
$value
$parameters
methodpublicappendSimpleFile(  $key,  $filepath ) : void

Parameters
Name Type Description
$key
$filepath
methodpublicapplyStorageFilePermissions(  $filename ) : void
static

Parameters
Name Type Description
$filename
methodpublicattribute(  $attributeName ) : void

Parameters
Name Type Description
$attributeName
methodpublicattributes( ) : void

methodpubliccacheDirectory( ) : void
static

methodpubliccanExport( ) : void

methodpubliccanImport( ) : void

methodpubliccanInstall( ) : void

methodpubliccanRead( ) : void

methodpubliccanUsePackagePolicyFunction(  $functionName ) : void

Parameters
Name Type Description
$functionName
methodpubliccanUsePolicyFunction(  $functionName ) : void
static

Parameters
Name Type Description
$functionName
methodpubliccreate(  $name,  $parameters = array(),  $repositoryPath = false,  $repositoryID = false ) : void
static

Parameters
Name Type Description
$name
$parameters
$repositoryPath
$repositoryID
methodpubliccreateDependencyText(  $cli,  $dependencyItem,  $dependencySection ) : void

Parameters
Name Type Description
$cli
$dependencyItem
$dependencySection
methodpubliccreateDependencyTree(  $dependenciesNode,  $dependencyType,  $list ) : void

Parameters
Name Type Description
$dependenciesNode
$dependencyType
$list
methodpubliccreateInstallTree(  $installNode,  $dom,  $list,  $installType ) : void

Parameters
Name Type Description
$installNode
$dom
$list
$installType
methodpubliccurrentRepositoryInformation( ) : void

methodpubliccurrentRepositoryPath( ) : void

methodpublicdefaultLanguageMap( ) : void

methodpublicdefinitionFilename( ) : void
static

methodpublicdependencyItems(  $dependencySection,  $parameters = false ) : void

Parameters
Name Type Description
$dependencySection
$parameters
methodpublicdependencyOperatorText(  $dependencyItem ) : void

Parameters
Name Type Description
$dependencyItem
methodpublicdocumentDirectory( ) : void
static

methodpublicdomStructure( ) : void

methodpubliceZPackage(  $parameters = array(),  $repositoryPath = false ) : void

Parameters
Name Type Description
$parameters
$repositoryPath
methodpublicexportName( ) : void

methodpublicexportToArchive(  $archivePath ) : void

Parameters
Name Type Description
$archivePath
methodpublicfetch(  $packageName,  $packagePath = false,  $repositoryID = false,  $dbAvailable = true ) : void
static

Parameters
Name Type Description
$packageName
$packagePath
$repositoryID
$dbAvailable
methodpublicfetchDOMFromFile(  $filename ) : void
static

Parameters
Name Type Description
$filename
methodpublicfetchDependentPackages(  $dependencyType,  $failedList ) : void

Parameters
Name Type Description
$dependencyType
$failedList
methodpublicfetchFromCache(  $packagePath,  $packageModification,  $cacheExpired ) : void
static

Parameters
Name Type Description
$packagePath
$packageModification
$cacheExpired
methodpublicfetchFromFile(  $filename ) : void
static

Parameters
Name Type Description
$filename
methodpublicfetchMaintainerRoleIDList(  $packageType = false,  $checkRoles = false ) : void
static

Parameters
Name Type Description
$packageType
$checkRoles
methodpublicfetchMaintainerRoleList(  $packageType = false,  $checkRoles = false ) : void
static

Parameters
Name Type Description
$packageType
$checkRoles
methodpublicfetchPackages(  $parameters = array(),  $filterArray = array() ) : void
static

Parameters
Name Type Description
$parameters
$filterArray
methodpublicfileCount( ) : void

methodpublicfileItemPath(  $fileItem,  $collectionName,  $path = false ) : void

Parameters
Name Type Description
$fileItem
$collectionName
$path
methodpublicfileList(  $collectionName ) : void

Parameters
Name Type Description
$collectionName
methodpublicfileStorePath(  $fileItem,  $collectionName,  $path = false,  $installVariables = array() ) : void

Parameters
Name Type Description
$fileItem
$collectionName
$path
$installVariables
methodpublicfilesDirectory( ) : void
static

methodpublicgetInstallState( ) : void

methodpublicgetVersion( ) : void

Returns package version.

Combines package version number and release number.

\static \return Package version (string).

methodpublicgroupDependencyItemsByType(  $dependencyItems ) : void

Parameters
Name Type Description
$dependencyItems
methodpublichasAttribute(  $attributeName ) : void

Parameters
Name Type Description
$attributeName
methodpublicimport( string $archiveName, string $packageName, bool $dbAvailable = true, bool $repositoryID = false ) : \eZPackage
static

Imports a package from a gzip compressed tarball file

Parameters
Name Type Description
$archiveName string

Path to the archive file

$packageName string

Package name

$dbAvailable bool
$repositoryID bool
Returns
Type Description
\eZPackage The eZPackage object if successfull, or one of the STATUS_* class constants if an error occurs
methodpublicinstall( array $installParameters ) : bool

Installs all items in the package

Parameters
Name Type Description
$installParameters array
Returns
Type Description
bool true if all items installed correctly, false otherwise
methodpublicinstallItem(  $item,  $installParameters ) : void

Parameters
Name Type Description
$item
$installParameters
methodpublicinstallItemsList(  $type = false,  $os = false,  $name = false,  $isInstall = true ) : void

Parameters
Name Type Description
$type
$os
$name
$isInstall
methodpublicisInstalled( ) : void

methodpublicisValidName( string $packageName, string $transformedPackageName = null ) : boolean
static

Checks if a package name is valid

Parameters
Name Type Description
$packageName string

the package name

$transformedPackageName string

the package name, transformed to be valid

Returns
Type Description
boolean true if the package name is valid, false if not
methodpubliclanguageInfo(  $withLanguageNames = false ) : void

Parameters
Name Type Description
$withLanguageNames
methodpubliclanguageInfoFromPackageList(  $packageNameList,  $withLanguageNames = false ) : void
static

Parameters
Name Type Description
$packageNameList
$withLanguageNames
methodpublicmaintainerRoleListForRoles( ) : void
static

methodpublicmaintainerRoleName(  $roleID ) : void
static

Parameters
Name Type Description
$roleID
methodpublicmd5sum(  $file ) : void
static

Parameters
Name Type Description
$file
methodpublicpackageHandler(  $handlerName ) : void
static

Parameters
Name Type Description
$handlerName
methodpublicpackageRepositories(  $parameters = array() ) : void
static

Parameters
Name Type Description
$parameters
methodpublicparseDOMTree(  $dom ) : void

Parameters
Name Type Description
$dom
methodpublicparseDependencyTree(  $dependenciesList,  $dependencySection ) : void

Parameters
Name Type Description
$dependenciesList
$dependencySection
methodpublicparseInstallTree(  $installList,  $isInstall ) : void

Parameters
Name Type Description
$installList
$isInstall
methodpublicpath( ) : void

methodpublicremove( ) : void

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

methodpublicremoveFiles(  $path ) : void
static

Parameters
Name Type Description
$path
methodpublicrepositoryInformation(  $repositoryID ) : void
static

Parameters
Name Type Description
$repositoryID
methodpublicrepositoryPath( ) : void
static

methodpublicsetAttribute(  $attributeName,  $attributeValue ) : void

Parameters
Name Type Description
$attributeName
$attributeValue
methodpublicsetCurrentRepositoryInformation(  $information ) : void

Parameters
Name Type Description
$information
methodpublicsetInstalled(  $installed = true ) : void

Parameters
Name Type Description
$installed
methodpublicsetPackager(  $timestamp = false,  $host = false,  $packager = false ) : void

Parameters
Name Type Description
$timestamp
$host
$packager
methodpublicsetParameters(  $parameters = array() ) : void

Parameters
Name Type Description
$parameters
methodpublicsetRelease(  $version = false,  $release = false,  $timestamp = false,  $licence = false,  $state = false ) : void

Parameters
Name Type Description
$version
$release
$timestamp
$licence
$state
methodpublicsettingsDirectory( ) : void
static

methodpublicsimpleFilePath(  $fileKey ) : void

Parameters
Name Type Description
$fileKey
methodpublicsimpleFilesDirectory( ) : void
static

methodpublicstateList( ) : void
static

methodpublicstore( ) : void

methodpublicstoreCache(  $directory = false ) : void

Parameters
Name Type Description
$directory
methodpublicstoreDOM(  $filename,  $dom ) : void
static

Parameters
Name Type Description
$filename
$dom
methodpublicstorePackageFile(  $path,  $storeCache = true ) : void

Parameters
Name Type Description
$path
$storeCache
methodpublicstoreString(  $filename,  $data ) : void
static

Parameters
Name Type Description
$filename
$data
methodpublicstoreToFile(  $filename ) : void

Parameters
Name Type Description
$filename
methodpublicsuffix( ) : void
static

methodpublicsystemRepositoryInformation( ) : void
static

methodpublictemporaryExportPath( ) : void
static

methodpublictemporaryImportPath( ) : void
static

methodpublicthumbnailList(  $collectionName ) : void

Parameters
Name Type Description
$collectionName
methodpublictoString( ) : void

methodpublictypeList( ) : void
static

methodpublicuninstall(  $uninstallParameters = array() ) : void

Parameters
Name Type Description
$uninstallParameters
methodpublicuninstallItem(  $item,  $uninstallParameters ) : void

Parameters
Name Type Description
$item
$uninstallParameters
methodpublicuseCache( ) : void
static

Documentation was generated by DocBlox 0.18.1.