PHP Class Horde_Release_Sentinel, 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.
Author: Mike Hardy
Author: Jan Schneider ([email protected])
Author: Gunnar Wrobel ([email protected])
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( string $component ) Constructor.
applicationFileExists ( ) : string | boolean Indicates if there is a Application.php file for this component.
bundleFileExists ( ) : string | boolean Indicates if there is a Bundle.php file for this component.
changesFileExists ( ) : string | boolean Indicates if there is a CHANGES file for this component.
getVersion ( ) : string Returns the current version from Application.php or Bundle.php.
replaceChanges ( string $version ) : null Replace the current sentinel in the CHANGES file in case it exists.
updateApplication ( $version ) : null Update the Application.php or Bundle.php file in case it exists.
updateChanges ( string $version ) : null Update the CHANGES file in case it exists.

Method Details

__construct() public method

Constructor.
public __construct ( string $component )
$component string Base component path.

applicationFileExists() public method

Indicates if there is a Application.php file for this component.
public applicationFileExists ( ) : string | boolean
return string | boolean The path to the Application.php file if it exists, false otherwise.

bundleFileExists() public method

Indicates if there is a Bundle.php file for this component.
public bundleFileExists ( ) : string | boolean
return string | boolean The path to the Bundle.php file if it exists, false otherwise.

changesFileExists() public method

Indicates if there is a CHANGES file for this component.
public changesFileExists ( ) : string | boolean
return string | boolean The path to the CHANGES file if it exists, false otherwise.

getVersion() public method

Returns the current version from Application.php or Bundle.php.
public getVersion ( ) : string
return string Version string.

replaceChanges() public method

Replace the current sentinel in the CHANGES file in case it exists.
public replaceChanges ( string $version ) : null
$version string Version string that should be added.
return null

updateApplication() public method

Update the Application.php or Bundle.php file in case it exists.
public updateApplication ( $version ) : null
return null

updateChanges() public method

Update the CHANGES file in case it exists.
public updateChanges ( string $version ) : null
$version string Version string that should be added.
return null