Permalink
Browse files

BackwardsCompatibilityBreak - Renamed fTimestamp::createFormat() to f…

…Timestamp::defineFormat()
  • Loading branch information...
wbond committed Oct 1, 2008
1 parent 2c54066 commit 6329fae0f43706a4a67b13c89923c7cef8481ed5
Showing with 5 additions and 5 deletions.
  1. +1 −1 classes/fDate.php
  2. +1 −1 classes/fTime.php
  3. +3 −3 classes/fTimestamp.php
View
@@ -111,7 +111,7 @@ public function adjust($adjustment)
*
* @throws fValidationException
*
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::createFormat()}
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::defineFormat()}
* @return string The formatted date
*/
public function format($format)
View
@@ -111,7 +111,7 @@ public function adjust($adjustment)
*
* @throws fValidationException
*
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::createFormat()}
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::defineFormat()}
* @return string The formatted time
*/
public function format($format)
View
@@ -88,7 +88,7 @@ static public function combine(fDate $date, fTime $time, $timezone=NULL)
* @param string $formatting_string The format string compatible with the {@link http://php.net/date date()} function
* @return void
*/
static public function createFormat($name, $formatting_string)
static public function defineFormat($name, $formatting_string)
{
self::$formats[$name] = $formatting_string;
}
@@ -644,7 +644,7 @@ static public function setDefaultTimezone($timezone)
/**
* Takes a format name set via {@link fTimestamp::createFormat()} and returns the {@link http://php.net/date date()} function formatting string
* Takes a format name set via {@link fTimestamp::defineFormat()} and returns the {@link http://php.net/date date()} function formatting string
*
* @internal
*
@@ -786,7 +786,7 @@ public function adjust($adjustment)
*
* @throws fValidationException
*
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::createFormat()}
* @param string $format The {@link http://php.net/date date()} function compatible formatting string, or a format name from {@link fTimestamp::defineFormat()}
* @return string The formatted date/time
*/
public function format($format)

0 comments on commit 6329fae

Please sign in to comment.