Overview

Packages

  • Date

Classes

  • Horde_Date
  • Horde_Date_Exception
  • Horde_Date_Recurrence
  • Horde_Date_Repeater
  • Horde_Date_Repeater_Day
  • Horde_Date_Repeater_DayName
  • Horde_Date_Repeater_DayPortion
  • Horde_Date_Repeater_Fortnight
  • Horde_Date_Repeater_Hour
  • Horde_Date_Repeater_Minute
  • Horde_Date_Repeater_Month
  • Horde_Date_Repeater_MonthName
  • Horde_Date_Repeater_Season
  • Horde_Date_Repeater_SeasonName
  • Horde_Date_Repeater_Second
  • Horde_Date_Repeater_Time
  • Horde_Date_Repeater_Week
  • Horde_Date_Repeater_Weekend
  • Horde_Date_Repeater_Year
  • Horde_Date_Span
  • Horde_Date_Translation
  • Horde_Date_Utils

Exceptions

  • Horde_Date_Repeater_Exception
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Copyright 2009-2012 Horde LLC (http://www.horde.org/)
 4:  *
 5:  * See the enclosed file COPYING for license information (LGPL). If you
 6:  * did not receive this file, see http://www.horde.org/licenses/lgpl21.
 7:  *
 8:  * @category Horde
 9:  * @package  Date
10:  */
11: 
12: /**
13:  * @category Horde
14:  * @package  Date
15:  */
16: class Horde_Date_Repeater_SeasonName extends Horde_Date_Repeater_Season
17: {
18:     /**
19:      * 91 * 24 * 60 * 60
20:      */
21:     const SEASON_SECONDS = 7862400;
22: 
23:     public $summer = array('jul 21', 'sep 22');
24:     public $autumn = array('sep 23', 'dec 21');
25:     public $winter = array('dec 22', 'mar 19');
26:     public $spring = array('mar 20', 'jul 20');
27:     public $type;
28: 
29:     public function __construct($type)
30:     {
31:         $this->type = $type;
32:     }
33: 
34:     public function next($pointer = 'future')
35:     {
36:         parent::next($pointer);
37:         throw new Horde_Date_Repeater_Exception('Not implemented');
38:     }
39: 
40:     public function this($pointer = 'future')
41:     {
42:         parent::this($pointer);
43:         throw new Horde_Date_Repeater_Exception('Not implemented');
44:     }
45: 
46:     public function width()
47:     {
48:         return self::SEASON_SECONDS;
49:     }
50: 
51:     public function __toString()
52:     {
53:         return parent::__toString() . '-season-' . $this->type;
54:     }
55: 
56: }
57: 
API documentation generated by ApiGen