PHP Class Horde_Release_Website, horde

显示文件 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_db PDO Database handle.

Public Methods

Method Description
__construct ( PDO $db ) Constructor.
addNewVersion ( array $info = [] ) Adds a new version to an application.

Protected Methods

Method Description
_stateFromVersion ( string $version ) : string Returns the release stability of a version.

Method Details

__construct() public method

Constructor.
public __construct ( PDO $db )
$db PDO Database handle.

_stateFromVersion() protected method

Returns the release stability of a version.
protected _stateFromVersion ( string $version ) : string
$version string A version string.
return string Release stability information.

addNewVersion() public method

Adds a new version to an application.
public addNewVersion ( array $info = [] )
$info array Hash with the version information. Possible keys: - application: (string) The name of the application. - version: (string) The version string. - state: (string) The version state. One of "stable", "dev", "three". By default automatically detected from "version. - date: (DateTime) The release date. Defaults to today. - pear: (boolean) A PEAR release? Defaults to true. - dir: (string) Optional website directory, if not "application".

Property Details

$_db protected_oe property

Database handle.
protected PDO $_db
return PDO