Documentation

Poll
in package

Class Poll

Represents a poll with various attributes such as title, description, question, and metadata about its creation and modification.

Table of Contents

Properties

$created  : DateTime
$created  : DateTime
$createdBy  : int
$createdBy  : int
$createdByUsername  : string
$createdByUsername  : string
$description  : string
$description  : string
$id  : int
$id  : int
$modified  : DateTime|null
$modified  : DateTime|null
$modifiedBy  : int|null
$modifiedBy  : int|null
$modifiedByUsername  : string
$modifiedByUsername  : string
$pollTypeCode  : string
$pollTypeCode  : string
$question  : string
$question  : string
$responses  : int
$responses  : int
$title  : string
$title  : string

Methods

__construct()  : mixed

Properties

$created

public DateTime $created

The date and time when the poll was created.

$created

public DateTime $created

$createdBy

public int $createdBy

The ID of the user who created the poll.

$createdBy

public int $createdBy

$createdByUsername

public string $createdByUsername

The username of the user who created the poll.

$createdByUsername

public string $createdByUsername

$description

public string $description

A brief description of the poll.

$description

public string $description

$id

public int $id

The unique identifier for the poll.

$modified

public DateTime|null $modified

The date and time when the poll was last modified, or null if it has not been modified.

$modified

public DateTime|null $modified

$modifiedBy

public int|null $modifiedBy

The ID of the user who last modified the poll, or null if it has not been modified.

$modifiedBy

public int|null $modifiedBy

$modifiedByUsername

public string $modifiedByUsername

The username of the user who last modified the poll.

$modifiedByUsername

public string $modifiedByUsername

$pollTypeCode

public string $pollTypeCode

The type code of the poll.

$pollTypeCode

public string $pollTypeCode

$question

public string $question

The main question of the poll.

$question

public string $question

$responses

public int $responses

The number of responses the poll has received.

$responses

public int $responses

$title

public string $title

The title of the poll.

$title

public string $title

Methods

__construct()

public __construct(int $id, string $title, string $description, string $question, string $pollTypeCode, int $responses, string $created, int $createdBy[, string $createdByUsername = "" ][, string $modified = null ][, int $modifiedBy = 0 ][, string|null $modifiedByUsername = "" ]) : mixed
Parameters
$id : int
$title : string
$description : string
$question : string
$pollTypeCode : string
$responses : int
$created : string
$createdBy : int
$createdByUsername : string = ""
$modified : string = null
$modifiedBy : int = 0
$modifiedByUsername : string|null = ""

        
On this page

Search results