ZenMagick 0.9.10


zenmagick.store.shared.model.layout\ZMBanner
model\layout\ZMBanner.php at line 33

Class ZMBanner

ZMObject
└─ZMBanner

public class ZMBanner
extends ZMObject

A single banner.

Author:
DerManoMann

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

__construct()

Create new instance.

int

getId()

Get the banner id.

string

getImage()

Get the banner image.

string

getText()

Get the banner text.

string

getTitle()

Get the banner title.

string

getUrl()

Get the banner URL.

boolean

isActive()

Check if the banner is active.

boolean

isNewWin()

Check if the banner click should open a new window.

void

setActive(boolean status)

Set the banner status.

void

setId(int id)

Set the banner id.

void

setImage(string image)

Set the banner image.

void

setNewWin(boolean newWin)

Set if the banner click should open a new window.

void

setText(string text)

Set the banner text.

void

setTitle(string title)

Set the banner title.

void

setUrl(string url)

Set the banner URL.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\layout\ZMBanner.php at line 46

__construct

public void __construct()

Create new instance.


model\layout\ZMBanner.php at line 70

getId

public int getId()

Get the banner id.

Returns:
The banner id.

model\layout\ZMBanner.php at line 84

getImage

public string getImage()

Get the banner image.

Returns:
The banner image.

model\layout\ZMBanner.php at line 91

getText

public string getText()

Get the banner text.

Returns:
The banner text.

model\layout\ZMBanner.php at line 77

getTitle

public string getTitle()

Get the banner title.

Returns:
The banner title.

model\layout\ZMBanner.php at line 112

getUrl

public string getUrl()

Get the banner URL.

Returns:
The banner URL.

model\layout\ZMBanner.php at line 105

isActive

public boolean isActive()

Check if the banner is active.

Returns:
true if the banner is active.

model\layout\ZMBanner.php at line 98

isNewWin

public boolean isNewWin()

Check if the banner click should open a new window.

Returns:
true if the banner URL should be opened in a new window, false if not.

model\layout\ZMBanner.php at line 161

setActive

public void setActive(boolean status)

Set the banner status.

Parameters:
status - The banner status.

model\layout\ZMBanner.php at line 119

setId

public void setId(int id)

Set the banner id.

Parameters:
id - The banner id.

model\layout\ZMBanner.php at line 133

setImage

public void setImage(string image)

Set the banner image.

Parameters:
image - The banner image.

model\layout\ZMBanner.php at line 147

setNewWin

public void setNewWin(boolean newWin)

Set if the banner click should open a new window.

Parameters:
newWin - true if the banner URL should be opened in a new window, false if not.

model\layout\ZMBanner.php at line 140

setText

public void setText(string text)

Set the banner text.

Parameters:
text - The banner text.

model\layout\ZMBanner.php at line 126

setTitle

public void setTitle(string title)

Set the banner title.

Parameters:
title - The banner title.

model\layout\ZMBanner.php at line 154

setUrl

public void setUrl(string url)

Set the banner URL.

Parameters:
url - The banner URL.

ZenMagick 0.9.10