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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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