ZenMagick 0.9.8


org.zenmagick.store.model.layout.ZMBanner
\store\model\layout\ZMBanner.php at line 34

Class ZMBanner

ZMObject
└─ZMBanner

public class ZMBanner
extends ZMObject

A single banner.

Author:
DerManoMann
Version:
$Id: ZMBanner.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMBanner()

Create new instance.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\layout\ZMBanner.php at line 47

ZMBanner

public ZMBanner()

Create new instance.


Method Detail

\store\model\layout\ZMBanner.php at line 71

getId

public int getId()

Get the banner id.

Returns:
The banner id.

\store\model\layout\ZMBanner.php at line 85

getImage

public string getImage()

Get the banner image.

Returns:
The banner image.

\store\model\layout\ZMBanner.php at line 92

getText

public string getText()

Get the banner text.

Returns:
The banner text.

\store\model\layout\ZMBanner.php at line 78

getTitle

public string getTitle()

Get the banner title.

Returns:
The banner title.

\store\model\layout\ZMBanner.php at line 113

getUrl

public string getUrl()

Get the banner URL.

Returns:
The banner URL.

\store\model\layout\ZMBanner.php at line 106

isActive

public boolean isActive()

Check if the banner is active.

Returns:
true if the banner is active.

\store\model\layout\ZMBanner.php at line 99

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.

\store\model\layout\ZMBanner.php at line 162

setActive

public void setActive(boolean status)

Set the banner status.

Parameters:
status - The banner status.

\store\model\layout\ZMBanner.php at line 120

setId

public void setId(int id)

Set the banner id.

Parameters:
id - The banner id.

\store\model\layout\ZMBanner.php at line 134

setImage

public void setImage(string image)

Set the banner image.

Parameters:
image - The banner image.

\store\model\layout\ZMBanner.php at line 148

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.

\store\model\layout\ZMBanner.php at line 141

setText

public void setText(string text)

Set the banner text.

Parameters:
text - The banner text.

\store\model\layout\ZMBanner.php at line 127

setTitle

public void setTitle(string title)

Set the banner title.

Parameters:
title - The banner title.

\store\model\layout\ZMBanner.php at line 155

setUrl

public void setUrl(string url)

Set the banner URL.

Parameters:
url - The banner URL.

ZenMagick 0.9.8