ImageVariable

Type
Class
Namespace
Craft
Inherits
Craft\ImageVariable
Since
1.0

Class ImageVariable

See also http://craftcms.com

View source (opens new window)

# Protected Properties

# $path

Signature

protected string $path = null

# $size

Signature

protected  $size = null

# $url

Signature

protected string $url = null

# Public Methods

Method Description
__construct() Constructor
getHeight() Returns the image's height.
getSize() Returns an array of the width and height of the image.
getUrl() Returns the image's URL.
getWidth() Returns the image's width.

# __construct()

Signature

public Craft\ImageVariable __construct ( $path, $url = "" )

# getHeight()

Signature

public integer getHeight ( )

# getSize()

Returns an array of the width and height of the image.

View source (opens new window)

Returns

array (opens new window)

Signature

public array getSize ( )

# getUrl()

Signature

public string getUrl ( )

# getWidth()

Signature

public integer getWidth ( )