|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($value) | |
| asDateTime () | |
| asHtml ($linkResolver=null) | |
| asText () | |
| getValue () | |
This class embodies a Timestamp fragment.
| Prismic\Fragment\Timestamp::__construct | ( | $value | ) |
Constructs a Timestamp fragment.
| string | $value | the timestamp's value |
| Prismic\Fragment\Timestamp::asDateTime | ( | ) |
Builds a DateTime from the Timestamp fragment, for further manipulation in native PHP.
| Prismic\Fragment\Timestamp::asHtml | ( | $linkResolver = null | ) |
Builds a HTML version of the timestamp.
| \Prismic\LinkResolver | $linkResolver | the link resolver |
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Timestamp::asText | ( | ) |
Builds a text version of the timestamp.
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Timestamp::getValue | ( | ) |
Returns the timestamp's value.
1.8.12