1 | <?php |
---|
2 | /* vim: set expandtab tabstop=4 shiftwidth=4: */ |
---|
3 | // |
---|
4 | // +----------------------------------------------------------------------+ |
---|
5 | // | PHP Version 4 | |
---|
6 | // +----------------------------------------------------------------------+ |
---|
7 | // | Copyright (c) 1997-2002 The PHP Group | |
---|
8 | // +----------------------------------------------------------------------+ |
---|
9 | // | This source file is subject to version 2.02 of the PHP license, | |
---|
10 | // | that is bundled with this package in the file LICENSE, and is | |
---|
11 | // | available at through the world-wide-web at | |
---|
12 | // | http://www.php.net/license/3_0.txt. | |
---|
13 | // | If you did not receive a copy of the PHP license and are unable to | |
---|
14 | // | obtain it through the world-wide-web, please send a note to | |
---|
15 | // | license@php.net so we can mail you a copy immediately. | |
---|
16 | // +----------------------------------------------------------------------+ |
---|
17 | // | Authors: Harry Fuecks <hfuecks@phppatterns.com> | |
---|
18 | // +----------------------------------------------------------------------+ |
---|
19 | // |
---|
20 | // $Id: Second.php,v 1.1 2004/05/24 22:25:42 quipo Exp $ |
---|
21 | // |
---|
22 | /** |
---|
23 | * @package Calendar |
---|
24 | * @version $Id: Second.php,v 1.1 2004/05/24 22:25:42 quipo Exp $ |
---|
25 | */ |
---|
26 | |
---|
27 | /** |
---|
28 | * Allows Calendar include path to be redefined |
---|
29 | * @ignore |
---|
30 | */ |
---|
31 | if (!defined('CALENDAR_ROOT')) { |
---|
32 | define('CALENDAR_ROOT', 'Calendar'.DIRECTORY_SEPARATOR); |
---|
33 | } |
---|
34 | |
---|
35 | /** |
---|
36 | * Load Calendar base class |
---|
37 | */ |
---|
38 | require_once CALENDAR_ROOT.'Calendar.php'; |
---|
39 | |
---|
40 | /** |
---|
41 | * Represents a Second<br /> |
---|
42 | * <b>Note:</b> Seconds do not build other objects |
---|
43 | * so related methods are overridden to return NULL |
---|
44 | * @package Calendar |
---|
45 | */ |
---|
46 | class Calendar_Second extends Calendar |
---|
47 | { |
---|
48 | /** |
---|
49 | * Constructs Second |
---|
50 | * @param int year e.g. 2003 |
---|
51 | * @param int month e.g. 5 |
---|
52 | * @param int day e.g. 11 |
---|
53 | * @param int hour e.g. 13 |
---|
54 | * @param int minute e.g. 31 |
---|
55 | * @param int second e.g. 45 |
---|
56 | */ |
---|
57 | function Calendar_Second($y, $m, $d, $h, $i, $s) |
---|
58 | { |
---|
59 | Calendar::Calendar($y, $m, $d, $h, $i, $s); |
---|
60 | } |
---|
61 | |
---|
62 | /** |
---|
63 | * Overwrite build |
---|
64 | * @return NULL |
---|
65 | */ |
---|
66 | function build() |
---|
67 | { |
---|
68 | return null; |
---|
69 | } |
---|
70 | |
---|
71 | /** |
---|
72 | * Overwrite fetch |
---|
73 | * @return NULL |
---|
74 | */ |
---|
75 | function fetch() |
---|
76 | { |
---|
77 | return null; |
---|
78 | } |
---|
79 | |
---|
80 | /** |
---|
81 | * Overwrite fetchAll |
---|
82 | * @return NULL |
---|
83 | */ |
---|
84 | function fetchAll() |
---|
85 | { |
---|
86 | return null; |
---|
87 | } |
---|
88 | |
---|
89 | /** |
---|
90 | * Overwrite size |
---|
91 | * @return NULL |
---|
92 | */ |
---|
93 | function size() |
---|
94 | { |
---|
95 | return null; |
---|
96 | } |
---|
97 | } |
---|
98 | ?> |
---|