Documentation

Horde_Release_Website
in package

Class for interfacing with the version DB of the Horde website.

Tags
category

Horde

author

Jan Schneider jan@horde.org

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

link
http://www.horde.org/libraries/Horde_Release

Table of Contents

$_db  : PDO
Database handle.
__construct()  : mixed
Constructor.
addNewVersion()  : mixed
Adds a new version to an application.
_stateFromVersion()  : string
Returns the release stability of a version.

Properties

$_db

Database handle.

protected PDO $_db

Methods

__construct()

Constructor.

public __construct(PDO $db) : mixed
Parameters
$db : PDO

Database handle.

Return values
mixed

addNewVersion()

Adds a new version to an application.

public addNewVersion([array<string|int, mixed> $info = array() ]) : mixed
Parameters
$info : array<string|int, mixed> = 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".
Tags
throws
Horde_Exception
Return values
mixed

_stateFromVersion()

Returns the release stability of a version.

protected _stateFromVersion(string $version) : string
Parameters
$version : string

A version string.

Tags
throws
Horde_Exception

on invalid version string.

Return values
string

Release stability information.

Search results