Manager
FinalYes
Table of Contents
Methods
- detachByFilter() : void
- Deletes attach by Filter.
- loadEmptyAttach() : Attach
- loadFromAttachId() : Attach
- loadFromEntity() : array<string|int, Attach>
- loadFromVoteId() : array<string|int, mixed>|Attach
Methods
detachByFilter()
Deletes attach by Filter.
public
static detachByFilter(array<string|int, mixed> $filter) : void
Parameters
- $filter : array<string|int, mixed>
-
Array in terms of ORM.
loadEmptyAttach()
public
static loadEmptyAttach(array<string|int, mixed> $attach, array<string|int, mixed> $voteParams) : Attach
Parameters
- $attach : array<string|int, mixed>
-
Data array from DB.
- $voteParams : array<string|int, mixed>
-
Array( "TITLE" => "ABC...", "QUESTIONS" => array( 1 => array( "ID" => 0, "QUESTION" => "Question text", "QUESTION_TYPE" => "text"||"html", "ANSWERS" => array( array( "ID" => 0, "MESSAGE" => "Answer text", "MESSAGE_TYPE" => "text"||"html", "FIELD_TYPE" => 0||1||2||3||4|| ) ) );.
Return values
AttachloadFromAttachId()
public
static loadFromAttachId(int $id) : Attach
Parameters
- $id : int
-
Attachment ID.
Tags
Return values
AttachloadFromEntity()
public
static loadFromEntity(array<string|int, mixed> $filter) : array<string|int, Attach>
Parameters
- $filter : array<string|int, mixed>
-
Array in terms ORM.
Tags
Return values
array<string|int, Attach>loadFromVoteId()
public
static loadFromVoteId(array<string|int, mixed> $attach, mixed $id) : array<string|int, mixed>|Attach
Parameters
- $attach : array<string|int, mixed>
-
Data array from DB.
- $id : mixed
-
Vote ID.