Documentation

CollaborationItem extends ActivityStreamItem
in package

Collaboration activity stream item

Table of Contents

Properties

$collaborationId  : int
$contextType  : string
$courseId  : int|null
$createdAt  : string
$groupId  : int|null
$htmlUrl  : string
$id  : int
$message  : string
$readState  : bool
$title  : string
$type  : string
$updatedAt  : string

Methods

__construct()  : mixed
Constructor
createFromData()  : ActivityStreamItem
Create an activity stream item from data based on type
getCreatedAtDate()  : DateTimeInterface|null
Get created at as DateTime
getUpdatedAtDate()  : DateTimeInterface|null
Get updated at as DateTime
isCourseItem()  : bool
Check if this is a course item
isGroupItem()  : bool
Check if this is a group item
isRead()  : bool
Check if the item is read
toArray()  : array<string, mixed>
Convert to array

Properties

Methods

__construct()

Constructor

public __construct([array<string, mixed> $data = [] ]) : mixed
Parameters
$data : array<string, mixed> = []

getCreatedAtDate()

Get created at as DateTime

public getCreatedAtDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

getUpdatedAtDate()

Get updated at as DateTime

public getUpdatedAtDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

isCourseItem()

Check if this is a course item

public isCourseItem() : bool
Return values
bool

isGroupItem()

Check if this is a group item

public isGroupItem() : bool
Return values
bool

toArray()

Convert to array

public toArray() : array<string, mixed>
Return values
array<string, mixed>

        
On this page

Search results