Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SigaaCourseForum

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected __instanceIndentifier

__instanceIndentifier: string

Private Optional _author

_author: string

Forum creator.

Private Optional _creationDate

_creationDate: Date

creation date of the forum.

Private Optional _description

_description: string

Description of the forum.

Private Optional _file

_file: File

File attached to the forum.

Private Optional _flagMonitorReading

_flagMonitorReading: boolean

If read monitoring is enabled.

Private _form

_form: SigaaForm

Form with parameters and url to load the forum page.

Private Optional _forumType

_forumType: string

Like 'Uma única discussão simples'

Private _fullForumPromise

_fullForumPromise: null | Promise<void> = null

Private _id

_id: string

the forum id.

Private Optional _numOfTopics

_numOfTopics: number

Number of topics

Private Optional _submitTopicPageForm

_submitTopicPageForm: SigaaForm

Form to submit topics in the forum.

Private _title

_title: string

Title of the forum.

Protected isClosed

isClosed: boolean = false

Readonly type

type: "forum" = 'forum'

Type of instance

Protected Optional updater

Accessors

_instanceIndentifier

  • get _instanceIndentifier(): string

id

  • get id(): string

title

  • get title(): string

Methods

Protected checkIfItWasClosed

  • checkIfItWasClosed(): void

close

  • close(): void

getAuthor

  • getAuthor(): Promise<string>

getCreationDate

  • getCreationDate(): Promise<Date>

getDescription

  • getDescription(): Promise<string>

getFile

  • getFile(): Promise<undefined | File>

getFlagMonitorReading

  • getFlagMonitorReading(): Promise<boolean>

Private getForumPage

  • getForumPage(retry?: boolean): Promise<void>

getForumType

  • getForumType(): Promise<string>

getNumOfTopics

  • getNumOfTopics(): Promise<number>

getTopics

  • getTopics(): Generator<Promise<boolean>, void, void>

Private loadForumPage

  • loadForumPage(): Promise<void>

Private parseForumTable

  • parseForumTable(page: Page): void

Private parseSubmitPageForm

  • parseSubmitPageForm(page: Page): void

postTopic

  • postTopic(title: string, body: string, file: string, notify: boolean): Promise<void>

update

Protected updateInstance

  • updateInstance(): Promise<void>

Generated using TypeDoc