PHP 클래스 Components_Component_Base, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
상속: implements Components_Component
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Components_Config $config, Components_Component_Factory $factory ) Constructor.
changed ( string $log, Components_Helper_ChangeLog $helper, array $options ) : null Update the component changelog.
currentSentinel ( string $changes, string $app, array $options ) : string Replace the current sentinel.
getChangelog ( Components_Helper_ChangeLog $helper ) : string | null Returns the link to the change log.
getChannel ( ) : string Return the channel of the component.
getData ( ) : array Return a data array with the most relevant information about this component.
getDate ( ) : string Return the last release date of the component.
getDependencies ( ) : array Return the dependencies for the component.
getDependencyList ( ) : Components_Component_DependencyList Return the dependency list for the component.
getDescription ( ) : string Return the component description.
getDocumentOrigin ( ) : string | null Return the path to a DOCS_ORIGIN file within the component.
getLeads ( ) : string Return the package lead developers.
getLicense ( ) : string Return the component license.
getLicenseLocation ( ) : string Return the component license URI.
getName ( ) : string Return the name of the component.
getNotes ( ) : string Return the package notes.
getPreviousVersion ( ) : string Returns the previous version of the component.
getReleaseNotesPath ( ) : string | boolean Return the path to the release notes.
getState ( string $key = 'release' ) : string Return the stability of the release or api.
getSummary ( ) : string Return the component summary.
getVersion ( ) : string Return the version of the component.
hasLocalPackageXml ( ) : boolean Indicate if the component has a local package.xml.
installChannel ( Components_Pear_Environment $env, array $options = [] ) : null Install the channel of this component in the environment.
nextSentinel ( string $changes, string $app, array $options ) : string Set the next sentinel.
nextVersion ( string $version, string $initial_note, string $stability_api = null, string $stability_release = null, array $options = [] ) : null Add the next version to the package.xml.
repositoryRoot ( Components_Helper_Root $helper ) : null Identify the repository root.
tag ( string $tag, string $message, Components_Helper_Commit $commit ) : null Tag the component.
timestampAndSync ( array $options ) : string Timestamp the package.xml file with the current time.
updateComposer ( array $options ) : string Updates the composer.json file.
updatePackageXml ( string $action, array $options ) : null Update the package.xml file for this component.

보호된 메소드들

메소드 설명
_hasCi ( ) : boolean Check if the library has a CI job.
createDestination ( string $destination ) : null Create the specified directory.
getBaseInstallationOptions ( array $options ) : array Derive the basic PEAR install options from the current option set.
getFactory ( ) : Components_Component_Factory Return the factory.
getOptions ( ) : array Return the application options.
getPackageXml ( ) : Horde_Pear_Package_Xml Return a PEAR package representation for the component.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Components_Config $config, Components_Component_Factory $factory )
$config Components_Config The configuration for the current job.
$factory Components_Component_Factory Generator for additional helpers.

_hasCi() 보호된 메소드

Check if the library has a CI job.
protected _hasCi ( ) : boolean
리턴 boolean True if a CI job is defined.

changed() 공개 메소드

Update the component changelog.
public changed ( string $log, Components_Helper_ChangeLog $helper, array $options ) : null
$log string The log entry.
$helper Components_Helper_ChangeLog The change log helper.
$options array Options for the operation.
리턴 null

createDestination() 보호된 메소드

Create the specified directory.
protected createDestination ( string $destination ) : null
$destination string The destination path.
리턴 null

currentSentinel() 공개 메소드

Replace the current sentinel.
public currentSentinel ( string $changes, string $app, array $options ) : string
$changes string New version for the CHANGES file.
$app string New version for the Application.php file.
$options array Options for the operation.
리턴 string The success message.

getBaseInstallationOptions() 보호된 메소드

Derive the basic PEAR install options from the current option set.
protected getBaseInstallationOptions ( array $options ) : array
$options array The current options.
리턴 array The installatin options.

getChangelog() 공개 메소드

Returns the link to the change log.
public getChangelog ( Components_Helper_ChangeLog $helper ) : string | null
$helper Components_Helper_ChangeLog The change log helper.
리턴 string | null The link to the change log.

getChannel() 공개 메소드

Return the channel of the component.
public getChannel ( ) : string
리턴 string The component channel.

getData() 공개 메소드

Return a data array with the most relevant information about this component.
public getData ( ) : array
리턴 array Information about this component.

getDate() 공개 메소드

Return the last release date of the component.
public getDate ( ) : string
리턴 string The date.

getDependencies() 공개 메소드

Return the dependencies for the component.
public getDependencies ( ) : array
리턴 array The component dependencies.

getDependencyList() 공개 메소드

Return the dependency list for the component.
public getDependencyList ( ) : Components_Component_DependencyList
리턴 Components_Component_DependencyList The dependency list.

getDescription() 공개 메소드

Return the component description.
public getDescription ( ) : string
리턴 string The description of the component.

getDocumentOrigin() 공개 메소드

Return the path to a DOCS_ORIGIN file within the component.
public getDocumentOrigin ( ) : string | null
리턴 string | null The path name or NULL if there is no DOCS_ORIGIN file.

getFactory() 보호된 메소드

Return the factory.
protected getFactory ( ) : Components_Component_Factory
리턴 Components_Component_Factory The factory.

getLeads() 공개 메소드

Return the package lead developers.
public getLeads ( ) : string
리턴 string The package lead developers.

getLicense() 공개 메소드

Return the component license.
public getLicense ( ) : string
리턴 string The component license.

getLicenseLocation() 공개 메소드

Return the component license URI.
public getLicenseLocation ( ) : string
리턴 string The component license URI.

getName() 공개 메소드

Return the name of the component.
public getName ( ) : string
리턴 string The component name.

getNotes() 공개 메소드

Return the package notes.
public getNotes ( ) : string
리턴 string The notes for the current release.

getOptions() 보호된 메소드

Return the application options.
protected getOptions ( ) : array
리턴 array The options.

getPackageXml() 보호된 메소드

Return a PEAR package representation for the component.
protected getPackageXml ( ) : Horde_Pear_Package_Xml
리턴 Horde_Pear_Package_Xml The package representation.

getPreviousVersion() 공개 메소드

Returns the previous version of the component.
public getPreviousVersion ( ) : string
리턴 string The previous component version.

getReleaseNotesPath() 공개 메소드

Return the path to the release notes.
public getReleaseNotesPath ( ) : string | boolean
리턴 string | boolean The path to the release notes or false.

getState() 공개 메소드

Return the stability of the release or api.
public getState ( string $key = 'release' ) : string
$key string "release" or "api"
리턴 string The stability.

getSummary() 공개 메소드

Return the component summary.
public getSummary ( ) : string
리턴 string The summary of the component.

getVersion() 공개 메소드

Return the version of the component.
public getVersion ( ) : string
리턴 string The component version.

hasLocalPackageXml() 공개 메소드

Indicate if the component has a local package.xml.
public hasLocalPackageXml ( ) : boolean
리턴 boolean True if a package.xml exists.

installChannel() 공개 메소드

Install the channel of this component in the environment.
public installChannel ( Components_Pear_Environment $env, array $options = [] ) : null
$env Components_Pear_Environment The environment to install into.
$options array Install options.
리턴 null

nextSentinel() 공개 메소드

Set the next sentinel.
public nextSentinel ( string $changes, string $app, array $options ) : string
$changes string New version for the CHANGES file.
$app string New version for the Application.php file.
$options array Options for the operation.
리턴 string The success message.

nextVersion() 공개 메소드

Add the next version to the package.xml.
public nextVersion ( string $version, string $initial_note, string $stability_api = null, string $stability_release = null, array $options = [] ) : null
$version string The new version number.
$initial_note string The text for the initial note.
$stability_api string The API stability for the next release.
$stability_release string The stability for the next release.
$options array Options for the operation.
리턴 null

repositoryRoot() 공개 메소드

Identify the repository root.
public repositoryRoot ( Components_Helper_Root $helper ) : null
$helper Components_Helper_Root The root helper.
리턴 null

tag() 공개 메소드

Tag the component.
public tag ( string $tag, string $message, Components_Helper_Commit $commit ) : null
$tag string Tag name.
$message string Tag message.
$commit Components_Helper_Commit The commit helper.
리턴 null

timestampAndSync() 공개 메소드

Timestamp the package.xml file with the current time.
public timestampAndSync ( array $options ) : string
$options array Options for the operation.
리턴 string The success message.

updateComposer() 공개 메소드

Updates the composer.json file.
public updateComposer ( array $options ) : string
$options array Options for the operation.
리턴 string The success message.

updatePackageXml() 공개 메소드

Update the package.xml file for this component.
public updatePackageXml ( string $action, array $options ) : null
$action string The action to perform. Either "update", "diff", or "print".
$options array Options for this operation.
리턴 null