From: Chuck Hagenbuch Date: Thu, 29 Jan 2009 22:12:53 +0000 (-0500) Subject: class headers for everything X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d704ff5bfcc90fe2ba61ec034a956d75183142e2;p=horde.git class headers for everything --- diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayName.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayName.php index 0486a4ddf..d93399cd7 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayName.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayName.php @@ -1,44 +1,47 @@ -class Chronic::RepeaterDayName < Chronic::Repeater #:nodoc: - DAY_SECONDS = 86400 # (24 * 60 * 60) - + 0, :monday => 1, :tuesday => 2, :wednesday => 3, :thursday => 4, :friday => 5, :saturday => 6} lookup[sym] || raise("Invalid symbol specified") diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayPortion.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayPortion.php index c854933ad..0f3ef72d8 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayPortion.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/DayPortion.php @@ -1,12 +1,14 @@ -class Chronic::RepeaterDayPortion < Chronic::Repeater #:nodoc: + YEAR_MONTHS @@ -50,11 +52,11 @@ class Chronic::RepeaterMonth < Chronic::Repeater #:nodoc: end Time.construct(new_year, new_month, time.day, time.hour, time.min, time.sec) end - + def width MONTH_SECONDS end - + def to_s super << '-month' end diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/MonthName.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/MonthName.php index 1f8b748a9..3b3135a59 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/MonthName.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/MonthName.php @@ -1,9 +1,11 @@ -class Chronic::RepeaterMonthName < Chronic::Repeater #:nodoc: + 1, :february => 2, diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/Second.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/Second.php index 6d05545ca..f55c86571 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/Second.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base/Repeater/Second.php @@ -1,36 +1,38 @@ -class Chronic::RepeaterSecond < Chronic::Repeater #:nodoc: - SECOND_SECONDS = 1 # haha, awesome - +