\DsbTopic

Topic

Summary

Methods
Properties
Constants
__construct()
getData()
isValid()
getTitle()
getIndex()
getIcon()
getItems()
getItem()
getChild()
getMethodName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$topic
N/A

Properties

$topic

$topic : 

Type

Methods

__construct()

__construct(object  $data) 

Parameters

object $data

Topic 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

getTitle()

getTitle() : string

Gets the title

Returns

string —

Title

getIndex()

getIndex() : integer

Gets the index

Returns

integer —

Index

getIcon()

getIcon() : string

Gets the url of the icon

Returns

string —

Url to icon

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

getChild()

getChild(integer  $index) : \DsbItem

Gets an item with a specified index

Parameters

integer $index

Index of the item

Returns

\DsbItem

item

getMethodName()

getMethodName() : string

Gets the MethodName

Returns

string —

MethodName