mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Add documentation on additional options.
This commit is contained in:
parent
683146de14
commit
176ec2df0c
1 changed files with 8 additions and 0 deletions
|
@ -343,6 +343,14 @@ class TimeHelper extends AppHelper {
|
|||
/**
|
||||
* @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.
|
||||
|
|
Loading…
Add table
Reference in a new issue