Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add documentation on additional options.

  • Loading branch information...
commit 176ec2df0c562bf79c3b072514a2e90db6db0a08 1 parent 683146d
@markstory markstory authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Cake/View/Helper/TimeHelper.php
View
8 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.
Please sign in to comment.
Something went wrong with that request. Please try again.