ZenMagick 0.9.10


zenmagick.store.shared.model.catalog\ZMImageInfo
model\catalog\ZMImageInfo.php at line 33

Class ZMImageInfo

ZMObject
└─ZMImageInfo

public class ZMImageInfo
extends ZMObject

Image information.

Author:
DerManoMann

Field Summary
protected mixed

$altText_

protected mixed

$imageDefault_

protected mixed

$imageLarge_

protected mixed

$imageMedium_

protected mixed

$parameter_

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(string image, string alt)

Create new image info.

static array

getAdditionalImages(string image)

Look up additional product images.

string

getAltText()

Get the alt text.

string

getDefaultImage()

Get the default image.

string

getFormattedParameter()

Get the parameter formatted as key="value" .

string

getLargeImage()

Get the large image.

string

getMediumImage()

Get the medium image.

array

getParameter()

Get the parameter.

boolean

hasImage()

Check if there is an image.

boolean

hasLargeImage()

Check if there is a large image.

boolean

hasMediumImage()

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
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Field Detail

model\catalog\ZMImageInfo.php at line 37

altText_

protected mixed $altText_

model\catalog\ZMImageInfo.php at line 34

imageDefault_

protected mixed $imageDefault_ = true

model\catalog\ZMImageInfo.php at line 36

imageLarge_

protected mixed $imageLarge_

model\catalog\ZMImageInfo.php at line 35

imageMedium_

protected mixed $imageMedium_

model\catalog\ZMImageInfo.php at line 38

parameter_

protected mixed $parameter_

Method Detail

model\catalog\ZMImageInfo.php at line 47

__construct

public void __construct(string image, string alt)

Create new image info.

Parameters:
image - The image name.
alt - The alt text.

model\catalog\ZMImageInfo.php at line 207

getAdditionalImages

public static array getAdditionalImages(string image)

Look up additional product images.

Parameters:
image - The image to look up.
Returns:
An array of ZMImageInfo instances.

model\catalog\ZMImageInfo.php at line 140

getAltText

public string getAltText()

Get the alt text.

Returns:
The alt text.

model\catalog\ZMImageInfo.php at line 105

getDefaultImage

public string getDefaultImage()

Get the default image.

Returns:
The default image.

model\catalog\ZMImageInfo.php at line 168

getFormattedParameter

public string getFormattedParameter()

Get the parameter formatted as key="value" .

Returns:
HTML formatted parameter.

model\catalog\ZMImageInfo.php at line 126

getLargeImage

public string getLargeImage()

Get the large image.

Returns:
The large image.

model\catalog\ZMImageInfo.php at line 119

getMediumImage

public string getMediumImage()

Get the medium image.

Returns:
The medium image.

model\catalog\ZMImageInfo.php at line 161

getParameter

public array getParameter()

Get the parameter.

Returns:
Map of key/value pairs.

model\catalog\ZMImageInfo.php at line 98

hasImage

public boolean hasImage()

Check if there is an image.

Returns:
true if there is an image, false if not.

model\catalog\ZMImageInfo.php at line 133

hasLargeImage

public boolean hasLargeImage()

Check if there is a large image.

Returns:
true if there is a large image, false if not.

model\catalog\ZMImageInfo.php at line 112

hasMediumImage

public boolean hasMediumImage()

Check if there is a medium image.

Returns:
true if there is a medium image, false if not.

model\catalog\ZMImageInfo.php at line 148

setParameter

public void setParameter(mixed parameter)

Set the parameter.

Parameters:
parameter - Additional parameter for the <mg> tag; can be either a query string style list of name/value pairs or a map.

model\catalog\ZMImageInfo.php at line 184

splitImageName

public static array splitImageName(string image)

Split image name into components that we need to process it.

Parameters:
image - The image.
Returns:
An array consisting of [optional subdirectory], [file extension], [basename]

ZenMagick 0.9.10