PHP Класс 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.
Автор: Mike Hardy
Автор: Jan Schneider ([email protected])
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

applicationFileExists() публичный Метод

Indicates if there is a Application.php file for this component.
public applicationFileExists ( ) : string | boolean
Результат string | boolean The path to the Application.php file if it exists, false otherwise.

bundleFileExists() публичный Метод

Indicates if there is a Bundle.php file for this component.
public bundleFileExists ( ) : string | boolean
Результат string | boolean The path to the Bundle.php file if it exists, false otherwise.

changesFileExists() публичный Метод

Indicates if there is a CHANGES file for this component.
public changesFileExists ( ) : string | boolean
Результат string | boolean The path to the CHANGES file if it exists, false otherwise.

getVersion() публичный Метод

Returns the current version from Application.php or Bundle.php.
public getVersion ( ) : string
Результат string Version string.

replaceChanges() публичный Метод

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.
Результат null

updateApplication() публичный Метод

Update the Application.php or Bundle.php file in case it exists.
public updateApplication ( $version ) : null
Результат null

updateChanges() публичный Метод

Update the CHANGES file in case it exists.
public updateChanges ( string $version ) : null
$version string Version string that should be added.
Результат null