Documentation

Horde_Block_Moon extends Horde_Core_Block
in package

Table of Contents

__construct()  : mixed
_content()  : mixed
_params()  : mixed
_calculateMoonPhases()  : array<string|int, mixed>
Returns an array with all the phases of the moon for a whole year.
_jdtogregorian()  : string
Checks if the jdtogregorian function exists, and if not calculates the gregorian date manually.

Methods

__construct()

public __construct(mixed $app[, mixed $params = array() ]) : mixed
Parameters
$app : mixed
$params : mixed = array()
Return values
mixed

_content()

protected _content() : mixed
Return values
mixed

_params()

protected _params() : mixed
Return values
mixed

_calculateMoonPhases()

Returns an array with all the phases of the moon for a whole year.

private _calculateMoonPhases(mixed $Y) : array<string|int, mixed>

Based on code from http://www.zend.com/codex.php?id=830&single=1 by Are Pedersen.

Converted from Basic by Roger W. Sinnot, Sky & Telescope, March 1985. Converted from javascript by Are Pedersen 2002 Javascript found at http://www.stellafane.com/moon_phase/moon_phase.htm

Parameters
$Y : mixed
Return values
array<string|int, mixed>

The moon phases.

_jdtogregorian()

Checks if the jdtogregorian function exists, and if not calculates the gregorian date manually.

private _jdtogregorian(int $julian) : string
Parameters
$julian : int

The julian date.

Return values
string

m/d/Y

Search results