Documentation

CPostingGeneral class

CPostingGeneral class handles subscription newsletter posts.

Class methods

MethodDescriptionAvailable from version
Add Adds a post.
Delete Deletes a post by its ID.
GetByID Returns a post by its ID.
GetEmails Returns array with addresses to send posts.
GetGroupList Returns selection of user groups to send a post.
UpdateGroups Updates information about a post association to user groups.
GetRubricList Returns list of subscription newsletter categories to send a post.
UpdateRubrics Updates information about association of a post to subscription categories.
SendMessage Returns true on success and false otherwise, "CONTINUE" upon partial dispatch. On failed dispatch, the class variable LAST_ERROR contains an error message.
Update Updates information about a subscription post by its ID.
SaveFile Adds an attachment to a post and saves and registers it in the file table (b_file).
DeleteFile Deletes a single or all post attachments.
GetFileList Returns a selection of post attachments.
AutoSend Sends a post using cron or agent.
ChangeStatus Updates post status.
GetEmailStatusesReturns an array with statuses in post dispatch queue.
GetEmailsByStatusReturns a selection from dispatch queue.


© «Bitrix24», 2001-2024
Up