См. определение в файле attach.php строка 179
◆ canEdit()
Checks rights to update current attached object.
- Аргументы
-
- Возвращает
- bool
- Исключения
-
Переопределяет метод предка BaseObject.
См. определение в файле attach.php строка 520
◆ canParticipate()
canParticipate |
( |
| $userId | ) |
|
Checks rights for voting.
- Аргументы
-
- Возвращает
- bool
См. определение в файле attach.php строка 495
◆ canRead()
Checks rights to read current attached object.
- Аргументы
-
- Возвращает
- bool
- Исключения
-
Переопределяет метод предка BaseObject.
См. определение в файле attach.php строка 485
◆ canReadResult()
◆ canRevote()
◆ canVote()
◆ checkData()
checkData |
( |
array & | $data | ) |
|
Checks array for correct data/
- Аргументы
-
array | &$data | 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|| ) ) );. |
- Возвращает
- void
- Исключения
-
См. определение в файле attach.php строка 648
◆ delete()
Deletes attach and vote in some cases.
- Возвращает
- boolean;
См. определение в файле attach.php строка 605
◆ exportExcel()
Exports data of voting into excel file
- Возвращает
- void
- Исключения
-
InvalidOperationException | |
См. определение в файле attach.php строка 769
◆ fillStatistic()
◆ generateUid()
◆ getAttachId()
Returns attachment id.
- Возвращает
- int|null
См. определение в файле attach.php строка 555
◆ getConnector()
Returns connector instance for attached object.
- Возвращает
- Connector|null
- Исключения
-
Bitrix\Main\LoaderException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле attach.php строка 531
◆ getData()
Return array where first key is attach array, second - vote array
- Аргументы
-
- Возвращает
- array|null
См. определение в файле attach.php строка 271
◆ getDataByEntity()
getDataByEntity |
( |
array | $id | ) |
|
|
static |
Returns array of attaches linked to special entity
- Аргументы
-
array | $id | Array("ENTITY_TYPE" => "blog", "ENTITY_ID" => 89);. |
- Возвращает
- mixed
См. определение в файле attach.php строка 410
◆ getEntityId()
Returns entity id.
- Возвращает
- string
См. определение в файле attach.php строка 587
◆ getEntityType()
Returns entity type.
- Возвращает
- string
См. определение в файле attach.php строка 579
◆ getModuleId()
Returns module id.
- Возвращает
- string
См. определение в файле attach.php строка 571
◆ getStorage()
◆ getUserEventAnswers()
getUserEventAnswers |
( |
int | $eventId | ) |
|
◆ getUserEventsAnswersStatByUserId()
getUserEventsAnswersStatByUserId |
( |
int | $userId | ) |
|
◆ getVoteId()
Returns vote id.
- Возвращает
- int|null
См. определение в файле attach.php строка 563
◆ init()
- Исключения
-
ArgumentException | |
ArgumentNullException | |
ObjectNotFoundException | |
Переопределяет метод предка BaseObject.
См. определение в файле attach.php строка 204
◆ isFinished()
◆ isPublicVote()
◆ isVotedFor()
Checks if current user voted for this vote.
- Аргументы
-
- Возвращает
- bool|int
См. определение в файле attach.php строка 780
◆ loadFromId()
loadFromId |
( |
| $id, |
|
|
| $shouldBeNewIfIdIsNull = false ) |
|
static |
- Аргументы
-
integer | $id | Entity ID. |
bool | $shouldBeNewIfIdIsNull | |
- Возвращает
- BaseObject
Переопределяет метод предка BaseObject.
См. определение в файле attach.php строка 890
◆ offsetExists()
- Аргументы
-
string | $offset | Key for vote or attach data array. |
- Возвращает
- bool
См. определение в файле attach.php строка 836
◆ offsetGet()
- Аргументы
-
string | $offset | Key for vote or attach data array. |
- Возвращает
- array|mixed|null
См. определение в файле attach.php строка 849
◆ offsetSet()
offsetSet |
( |
| $offset, |
|
|
| $value ) |
Is not supported.
- Аргументы
-
string | $offset | Key for vote or attach data array. |
mixed | $value | Value for vote or attach data array. |
- Возвращает
- void
- Исключения
-
См. определение в файле attach.php строка 870
◆ offsetUnset()
Is not supported.
- Аргументы
-
string | $offset | Key for vote or attach data array. |
- Возвращает
- void
- Исключения
-
См. определение в файле attach.php строка 881
◆ recall()
recall |
( |
int | $userId, |
|
|
string | $actionUuid = '' ) |
◆ resume()
resume |
( |
string | $actionUuid = '' | ) |
|
Prolongs voting period.
- Аргументы
-
string | $actionUuid | Frontend uid to send in push |
- Возвращает
- void
- Исключения
-
InvalidOperationException | |
См. определение в файле attach.php строка 795
◆ save()
save |
( |
| $data, |
|
|
| $createdBy = 0 ) |
Update vote data.
- Аргументы
-
array | $data | 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|| ) ) );. |
int | $createdBy | User ID. |
- Возвращает
- bool
См. определение в файле attach.php строка 693
◆ setStorage()
- Аргументы
-
- Исключения
-
См. определение в файле attach.php строка 262
◆ setVote()
◆ stop()
stop |
( |
string | $actionUuid = '' | ) |
|
Finishes voting period
- Аргументы
-
string | $actionUuid | Frontend uid to send in push |
- Возвращает
- void
- Исключения
-
InvalidOperationException | |
См. определение в файле attach.php строка 815
◆ voteFor()
voteFor |
( |
array | $request, |
|
|
string | $actionUuid = '' ) |
Voting for vote from current user $USER.
- Аргументы
-
array | $request | Array("
vote_checkbox_".$questionId => array(1,2,3,...), "vote_multiselect_".$questionId => array(1,2,3,...), "vote_dropdown_".$questionId => 12 || "12", "vote_radio_".$questionId => 12 || "12", "vote_field_".$answerId => "12"). |
string | $actionUuid | Frontend uid to send in push |
- Возвращает
- bool
- Исключения
-
InvalidOperationException | |
См. определение в файле attach.php строка 744
◆ $attach
◆ $channel
◆ $connector
◆ $loaded
Инициализатор
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
См. определение в файле attach.php строка 193
◆ $storage
◆ $vote
◆ UID_LENGTH
Объявления и описания членов класса находятся в файле: