\DsbItem

Item of a Topic

Summary

Methods
Properties
Constants
__construct()
getData()
isValid()
getId()
getDate()
getTitle()
getDetail()
getPreview()
getTags()
getConType()
getPrio()
getIndex()
getItems()
getItem()
getUrl()
getHtml()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$item
N/A

Properties

$item

$item : 

Type

Methods

__construct()

__construct(object  $data) 

Parameters

object $data

Item data

getData()

getData() : object

Returns the raw data; Try to avoid using this.

Returns

object

isValid()

isValid() : boolean

Checks whether object contains data

Returns

boolean —

Returns true if no error occurred

getId()

getId() : string

Gets the Id

Returns

string —

Id

getDate()

getDate() : string

Gets the Date

Returns

string —

Date

getTitle()

getTitle() : string

Gets the title

Returns

string —

Title

getDetail()

getDetail() : string

Gets either the Url if item is a timetable or the text if item is a news entry

Returns

string —

Url or Text

getPreview()

getPreview() : string

Gets Preview

Returns

string —

Url or Text

getTags()

getTags() : string

Gets tags

Returns

string —

Tags

getConType()

getConType() : integer

Gets content type

Returns

integer —

Content Type

getPrio()

getPrio() : integer

Gets prio

Returns

integer —

Prio

getIndex()

getIndex() : integer

Gets index

Returns

integer —

Index

getItems()

getItems() : array

Gets all of the items

Returns

array —

Array of DsbItem's

getItem()

getItem(integer  $index) : \DsbItem

Gets an item with a specified index

Parameters

integer $index

Index of the item

Returns

\DsbItem

item

getUrl()

getUrl() : string

Gets the Url of a timetable

Returns

string —

Url

getHtml()

getHtml() : string

Gets the Html code of the content WARNING: This can lead to XSS vulnerabilities so use this carefully!

Returns

string —

Html code