ZMObject
└─ZMImageInfo
public class ZMImageInfo
extends ZMObject
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMImageInfo(string image, string alt) Create new image info. |
|
| Method Summary | |
|---|---|
| static array | getAdditionalImages(string image) Look up additional product images. |
| string | Get the alt text. |
| string | Get the default image. |
| string | Get the parameter formatted as key="value" . |
| string | Get the large image. |
| string | Get the medium image. |
| array | Get the parameter. |
| boolean | hasImage() Check if there is an image. |
| boolean | Check if there is a large image. |
| boolean | Check if there is a medium image. |
| void | setParameter(mixed parameter) Set the parameter. |
| static array | splitImageName(string image) Split image name into components that we need to process it. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
protected mixed $altText_
protected mixed $imageDefault_
protected mixed $imageLarge_
protected mixed $imageMedium_
protected mixed $parameter_
public ZMImageInfo(string image, string alt)
Create new image info.
public static array getAdditionalImages(string image)
Look up additional product images.
ZMImageInfo instances.public string getAltText()
Get the alt text.
public string getDefaultImage()
Get the default image.
public string getFormattedParameter()
Get the parameter formatted as key="value" .
public string getLargeImage()
Get the large image.
public string getMediumImage()
Get the medium image.
public array getParameter()
Get the parameter.
public boolean hasImage()
Check if there is an image.
true if there is an image, false if not.public boolean hasLargeImage()
Check if there is a large image.
true if there is a large image, false if not.public boolean hasMediumImage()
Check if there is a medium image.
true if there is a medium image, false if not.public void setParameter(mixed parameter)
Set the parameter.
<mg> tag; can be either a query string style list of name/value pairs or a map.public static array splitImageName(string image)
Split image name into components that we need to process it.
Image information.