Метод | Описание | |
---|---|---|
__construct ( string $directory, 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. | |
getData ( ) : array | Return a data array with the most relevant information about this component. | |
getDocumentOrigin ( ) : array | null | Return the path to a DOCS_ORIGIN file within the component. | |
getPackageXmlPath ( ) : string | Return the path to the package.xml file of the component. | |
getReleaseNotesPath ( ) : string | boolean | Return the path to the release notes. | |
hasLocalPackageXml ( ) : boolean | Indicate if the component has a local package.xml. | |
install ( Components_Pear_Environment $env, array $options = [], string $reason = '' ) : null | Install a component. | |
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. | |
placeArchive ( string $destination, array $options = [] ) : array | Place the component source archive at the specified location. | |
repositoryRoot ( Components_Helper_Root $helper ) : null | Identify the repository root. | |
setState ( string $rel_state = null, string $api_state = null, $options = [] ) | Sets the state in the package.xml | |
setVersion ( string $rel_version = null, string $api_version = null, array $options = [] ) : null | Set the version in the package.xml | |
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. |
Метод | Описание | |
---|---|---|
getPackageXml ( ) : Horde_Pear_Package_Xml | Return a PEAR package representation for the component. |
Метод | Описание | |
---|---|---|
_getPackageFile ( ) : PEAR_PackageFile | Return a PEAR PackageFile representation for the component. |
public __construct ( string $directory, Components_Config $config, Components_Component_Factory $factory ) | ||
$directory | string | Path to the source directory. |
$config | Components_Config | The configuration for the current job. |
$factory | Components_Component_Factory | Generator for additional helpers. |
public getChangelog ( Components_Helper_ChangeLog $helper ) : string | null | ||
$helper | Components_Helper_ChangeLog | The change log helper. |
Результат | string | null | The link to the change log. |
public getDocumentOrigin ( ) : array | null | ||
Результат | array | null | An array containing the path name and the component base directory or NULL if there is no DOCS_ORIGIN file. |
protected getPackageXml ( ) : Horde_Pear_Package_Xml | ||
Результат | Horde_Pear_Package_Xml | The package representation. |
public getPackageXmlPath ( ) : string | ||
Результат | string | The path to the package.xml file. |
public getReleaseNotesPath ( ) : string | boolean | ||
Результат | string | boolean | The path to the release notes or false. |
public hasLocalPackageXml ( ) : boolean | ||
Результат | boolean | True if a package.xml exists. |
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 |
public placeArchive ( string $destination, array $options = [] ) : array | ||
$destination | string | The path to write the archive to. |
$options | array | Options for the operation. |
Результат | array | An array with at least [0] the path to the resulting archive, optionally [1] an array of error strings, and [2] PEAR output. |
public repositoryRoot ( Components_Helper_Root $helper ) : null | ||
$helper | Components_Helper_Root | The root helper. |
Результат | null |
public timestampAndSync ( array $options ) : string | ||
$options | array | Options for the operation. |
Результат | string | The success message. |
public updateComposer ( array $options ) : string | ||
$options | array | Options for the operation. |
Результат | string | The success message. |