|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($url, $kind, $size, $filename, $height, $width) | |
| getHeight () | |
| getWidth () | |
Public Member Functions inherited from Prismic\Fragment\Link\FileLink | |
| __construct ($url, $kind, $size, $filename) | |
| asHtml ($linkResolver=null) | |
| asText () | |
| getUrl ($linkResolver=null) | |
| getKind () | |
| getSize () | |
| getFilename () | |
Static Public Member Functions | |
| static | parse ($json) |
Static Public Member Functions inherited from Prismic\Fragment\Link\FileLink | |
| static | parse ($json) |
This class embodies an image link; it is what is retrieved from the API when a link is created towards an image file. LinkInterface objects can be found in two occasions: as the "$link" variable of a HyperlinkSpan object (which happens when the link is a hyperlink in a StructuredText fragment), or the LinkInterface can also be its own fragment (e.g. for a "related" fragment, that links to a related document).
| Prismic\Fragment\Link\ImageLink::__construct | ( | $url, | |
| $kind, | |||
| $size, | |||
| $filename, | |||
| $height, | |||
| $width | |||
| ) |
Constructs an image link.
| string | $url | the URL of the resource we're linking to |
| string | $kind | the kind of resource it is (document, image, ...) |
| string | $size | the size of the resource, in bytes |
| string | $filename | the resource's original filename, in bytes |
| int | $height | the height of the image |
| int | $width | the width of the image |
| Prismic\Fragment\Link\ImageLink::getHeight | ( | ) |
Returns the height of the image.
| Prismic\Fragment\Link\ImageLink::getWidth | ( | ) |
Returns the width of the image.
|
static |
1.8.12