Skip to content
Permalink
Browse files

Add documentation on additional options.

  • Loading branch information...
markstory committed May 13, 2012
1 parent 683146d commit 176ec2df0c562bf79c3b072514a2e90db6db0a08
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Cake/View/Helper/TimeHelper.php
@@ -343,6 +343,14 @@ public function toRSS($dateString, $timezone = null) {
/**
* @see CakeTime::timeAgoInWords()
*
* ## Addition options
*
* - `element` - The element to wrap the formatted time in.
* Has a few additional options:
* - `tag` - The tag to use, defaults to 'span'.
* - `class` - The classname to use, defaults to `time-ago-in-words`.
* - `title` - Defaults to the $dateTime input.
*
* @param string $dateTime Datetime string or Unix timestamp
* @param array $options Default format if timestamp is used in $dateString
* @return string Relative time string.

0 comments on commit 176ec2d

Please sign in to comment.
You can’t perform that action at this time.