Attach
Attach class for handling objects used with polls.
Class methods
Method | Description | Available from version |
---|---|---|
canEdit | Checks user access permissions for updating current attached object. | |
canParticipate | Checks user access permissions for poll participation. | |
canRead | Checks user access permissions for reading current attached object. | |
checkData | Checks array with poll data. | |
delete | Deletes attached object and poll. | |
detachByFilter | Deletes attached object by specified filter. | |
exportExcel | Exports poll data into MS Excel. | |
getAttachId | Returns entry ID in table with objects attached to polls. | |
getConnector | Returns connector instance for attached object. | |
getEntityId | Returns entity ID. | |
getEntityType | Returns entity ID. | |
getModuleId | Returns module ID. | |
getVoteId | Returns poll ID. | |
init | Initializes handling of attached objects. | |
isVotedFor | Checks if user has participated in this poll. | |
resume | Extends voting period. | |
save | Updates poll data. | |
stop | Finishes voting period. | |
voteFor | Executes voting for current user. | |
Attach constructor | Constructor for \Bitrix\Vote\Attachment\Attach class. |
© «Bitrix24», 2001-2024