Поддержка серверов

VOTE: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

События модуля vote

СобытиеВызывается
onAfterVoteAddVoteTable::onAfterAdd
onAfterVoteAnswerAddCVoteAnswer::Add
onAfterVoteAnswerDeleteCVoteAnswer::Delete
onAfterVoteAnswerUpdateCVoteAnswer::Update
onAfterVoteChannelAddCVoteChannel::Add
onAfterVoteChannelDeleteCVoteChannel::Delete
onAfterVoteChannelUpdateCVoteChannel::Update
onAfterVoteDeleteCVote::Delete
onAfterVoteQuestionAddCVoteQuestion::Add
onAfterVoteQuestionDeleteCVoteQuestion::Delete
onAfterVoteQuestionUpdateCVoteQuestion::Update
onAfterVoteUpdateVoteTable::onAfterUpdate
onAfterVotingVote::registerEvent
onBeforeVoteAddVoteTable::onBeforeAdd
onBeforeVoteAnswerAddCVoteAnswer::Add
onBeforeVoteAnswerDeleteCVoteAnswer::Delete
onBeforeVoteAnswerUpdateCVoteAnswer::Update
onBeforeVoteChannelAddCVoteChannel::Add
onBeforeVoteChannelDeleteCVoteChannel::Delete
onBeforeVoteChannelUpdateCVoteChannel::Update
onBeforeVoteDeleteCVote::Delete
onBeforeVoteQuestionAddCVoteQuestion::Add
onBeforeVoteQuestionDeleteCVoteQuestion::Delete
onBeforeVoteQuestionUpdateCVoteQuestion::Update
onBeforeVoteUpdateVoteTable::onBeforeUpdate
onBeforeVotingEvent::add
onVoteQuestionActivateCVoteQuestion::setActive
onVoteResetEvent::resetStatistic

Константы модуля vote

КонстантаПроверяется
BX_COMP_MANAGED_CACHEController::getVoted
PUBLIC_AJAX_MODEController::sendJsonResponse
SITE_SERVER_NAMEVote::sendVotingMessage
VOTE_CACHE_TIMEChannel::getList

Список функций и методов модуля vote

Метод
Anonymity::getList()
Anonymity::getTitle()
Anonymity::getTitledList()
Anonymity::getValues()
Anonymity::isUserVoteVisible()
Anonymity::validate()
Answer::add()
Answer::copyChildren()
Answer::getFields()
Answer::prepareFieldsToCopy()
Answer::setResetVotingResult()
AnswerTable::getMap()
AnswerTable::getTableName()
AnswerTable::setCounter()
AnswerTypes::getFullList()
AnswerTypes::getTitleById()
AnswerTypes::getTitledList()
Attach::canEdit()
Attach::canParticipate()
Attach::canRead()
Attach::canReadResult()
Attach::canRevote()
Attach::canVote()
Attach::checkData()
Attach::delete()
Attach::exportExcel()
Attach::fillStatistic()
Attach::getAttachId()
Attach::getConnector()
Attach::getData()
Attach::getDataByEntity()
Attach::getEntityId()
Attach::getEntityType()
Attach::getModuleId()
Attach::getStorage()
Attach::getVoteId()
Attach::init()
Attach::isVotedFor()
Attach::loadFromId()
Attach::offsetExists()
Attach::offsetGet()
Attach::offsetSet()
Attach::offsetUnset()
Attach::resume()
Attach::save()
Attach::setStorage()
Attach::setVote()
Attach::stop()
Attach::voteFor()
AttachTable::deleteByFilter()
AttachTable::getList()
AttachTable::getMap()
AttachTable::getTableName()
BaseObject::__construct()
BaseObject::canEdit()
BaseObject::canRead()
BaseObject::getApplication()
BaseObject::getErrorByCode()
BaseObject::getErrors()
BaseObject::getId()
BaseObject::getUser()
BaseObject::init()
BaseObject::loadFromId()
BaseObject::loadUserGroups()
BaseObject::shutdown()
BlogPostConnector::canEdit()
BlogPostConnector::canRead()
BlogPostConnector::checkFields()
BlogPostConnector::getPermission()
BlogPostConnector::getPostData()
CVote::Add()
CVote::CheckFields()
CVote::CheckVotingIP()
CVote::Copy()
CVote::Delete()
CVote::GetActiveVoteID()
CVote::GetByID()
CVote::GetByIDEx()
CVote::GetDropDownList()
CVote::GetFilterOperation()
CVote::GetList()
CVote::GetListEx()
CVote::GetNextSort()
CVote::GetNextStartDate()
CVote::GetNowTime()
CVote::GetPublicList()
CVote::IsOldVersion()
CVote::Reset()
CVote::SetVoteUserID()
CVote::Update()
CVote::UpdateVoteUserID()
CVote::UserAlreadyVote()
CVote::UserGroupPermission()
CVote::WrongDateInterval()
CVote::err_mess()
CVote::keepVoting()
CVoteAnswer::Add()
CVoteAnswer::CheckFields()
CVoteAnswer::Delete()
CVoteAnswer::GetGroupAnswers()
CVoteAnswer::GetList()
CVoteAnswer::GetListEx()
CVoteAnswer::Update()
CVoteAnswer::err_mess()
CVoteCacheManager::ClearTag()
CVoteCacheManager::OnAfterVoteAnswerAdd()
CVoteCacheManager::OnAfterVoteAnswerDelete()
CVoteCacheManager::OnAfterVoteAnswerUpdate()
CVoteCacheManager::OnAfterVoteChange()
CVoteCacheManager::OnAfterVoteChannelChange()
CVoteCacheManager::OnAfterVoteQuestionAdd()
CVoteCacheManager::OnAfterVoteQuestionDelete()
CVoteCacheManager::OnAfterVoteQuestionUpdate()
CVoteCacheManager::OnBeforeVoteAnswerUpdate()
CVoteCacheManager::OnBeforeVoteQuestionUpdate()
CVoteCacheManager::OnVoteChange()
CVoteCacheManager::SetTag()
CVoteCacheManager::__construct()
CVoteCacheManager::cachePath()
CVoteCacheManager::onAfterVoting()
CVoteChannel::Add()
CVoteChannel::CheckFields()
CVoteChannel::Delete()
CVoteChannel::GetArrayGroupPermission()
CVoteChannel::GetByID()
CVoteChannel::GetDropDownList()
CVoteChannel::GetGroupPermission()
CVoteChannel::GetList()
CVoteChannel::GetSiteArray()
CVoteChannel::SetAccessPermissions()
CVoteChannel::Update()
CVoteChannel::err_mess()
CVoteDiagramType::&getInstance()
CVoteDiagramType::CVoteDiagramType()
CVoteEvent::Delete()
CVoteEvent::GetAnswer()
CVoteEvent::GetByID()
CVoteEvent::GetList()
CVoteEvent::GetUserAnswerStat()
CVoteEvent::SetValid()
CVoteEvent::err_mess()
CVoteNotifySchema::OnGetNotifySchema()
CVoteNotifySchema::__construct()
CVoteQuestion::Add()
CVoteQuestion::CheckFields()
CVoteQuestion::Copy()
CVoteQuestion::Delete()
CVoteQuestion::GetByID()
CVoteQuestion::GetList()
CVoteQuestion::GetListEx()
CVoteQuestion::GetNextSort()
CVoteQuestion::Reset()
CVoteQuestion::Update()
CVoteQuestion::err_mess()
CVoteQuestion::setActive()
CVoteUser::Delete()
CVoteUser::GetList()
CVoteUser::OnUserLogin()
CVoteUser::err_mess()
Channel::__construct()
Channel::canEdit()
Channel::canEditVote()
Channel::canRead()
Channel::get()
Channel::getById()
Channel::getList()
Channel::init()
Channel::offsetExists()
Channel::offsetGet()
Channel::offsetSet()
Channel::offsetUnset()
ChannelGroupTable::getMap()
ChannelGroupTable::getTableName()
ChannelSiteTable::getMap()
ChannelSiteTable::getTableName()
ChannelTable::getMap()
ChannelTable::getTableName()
Connector::__construct()
Connector::buildFromAttachedObject()
Connector::canEdit()
Connector::canRead()
Connector::checkFields()
Connector::className()
Connector::getApplication()
Connector::getDataToShow()
Connector::getUser()
Controller::__construct()
Controller::checkAction()
Controller::checkRequiredFilesParams()
Controller::checkRequiredGetParams()
Controller::checkRequiredInputParams()
Controller::checkRequiredPostParams()
Controller::clearCache()
Controller::collectDebugInfo()
Controller::end()
Controller::exec()
Controller::getAction()
Controller::getActionDescription()
Controller::getApplication()
Controller::getErrorByCode()
Controller::getErrors()
Controller::getUser()
Controller::getVoted()
Controller::init()
Controller::isAjaxRequest()
Controller::listActions()
Controller::logDebugInfo()
Controller::normalizeActionDescription()
Controller::prepareParams()
Controller::processActionExportXls()
Controller::processActionGetBallot()
Controller::processActionGetMobileVoted()
Controller::processActionGetVoted()
Controller::processActionResume()
Controller::processActionStop()
Controller::processActionVote()
Controller::processBeforeAction()
Controller::resolveAction()
Controller::runAction()
Controller::sanitizeActionName()
Controller::sendJsonAccessDeniedResponse()
Controller::sendJsonErrorResponse()
Controller::sendJsonResponse()
Controller::sendJsonSuccessResponse()
Controller::sendResponse()
Controller::setAction()
Controller::setActionName()
DBResult::fetch()
DecColor()
DecRGBColor()
DefaultConnector::canEdit()
DefaultConnector::canRead()
DefaultConnector::getStorage()
DefaultConnector::isStorable()
DefaultConnector::setStorage()
Diag::__construct()
Diag::activate()
Diag::collectDebugInfo()
Diag::deactivate()
Diag::getDebugInfoSql()
Diag::getInstance()
Diag::getUser()
Diag::log()
Diag::logDebugInfo()
Diag::reformatBackTrace()
Diag::setExclusiveUserId()
Diag::setShowOnDisplay()
Event::__construct()
Event::add()
Event::calculateStatistic()
Event::check()
Event::deleteEvent()
Event::getDataFromRequest()
Event::getExtrasFieldName()
Event::getFieldName()
Event::getMessageFieldName()
Event::resetStatistic()
Event::setValid()
EventAnswerTable::getMap()
EventAnswerTable::getTableName()
EventLimits::getList()
EventQuestionTable::getMap()
EventQuestionTable::getTableName()
EventTable::getMap()
EventTable::getTableName()
ForumMessageConnector::canEdit()
ForumMessageConnector::canRead()
GetAnswerTypeList()
GetAnyAccessibleVote()
GetCurrentVote()
GetNextColor()
GetPrevVote()
GetTemplateList()
GetVoteDataByID()
GetVoteDiagramArray()
GetVoteDiagramList()
GetVoteList()
HexColor()
IsUserVoted()
Manager::__construct()
Manager::belongsToEntity()
Manager::buildAdditionalConnectorList()
Manager::detachByFilter()
Manager::getAdditionalConnector()
Manager::getAdditionalConnectors()
Manager::getAnswerCopier()
Manager::getConnectorDataByEntityType()
Manager::getConnectors()
Manager::getContainerCollection()
Manager::getDefaultConnectors()
Manager::getErrors()
Manager::getInstance()
Manager::getQuestionCopier()
Manager::getVoteCopier()
Manager::loadEmptyAttach()
Manager::loadEmptyObject()
Manager::loadFromAttachId()
Manager::loadFromEntity()
Manager::loadFromVoteId()
Manager::markAnswer()
Manager::markQuestion()
Manager::setResetVotingResult()
Manager::showEdit()
Manager::showView()
Manager::startCopy()
Option::getList()
Question::add()
Question::copyAnswer()
Question::copyChildren()
Question::getFields()
Question::prepareFieldsToCopy()
Question::setAnswerCopier()
Question::setResetVotingResult()
QuestionTable::getMap()
QuestionTable::getTableName()
QuestionTable::setCounter()
QuestionTypes::getFullList()
QuestionTypes::getList()
QuestionTypes::getTitleById()
QuestionTypes::getTitledList()
QuestionTypes::getValues()
ShowCurrentVote()
ShowCurrentVoteResults()
ShowPrevVoteResults()
ShowVote()
ShowVoteResults()
User::getCookieId()
User::getCurrent()
User::getVotedUserId()
User::init()
User::isUserVotedFor()
User::isVotedFor()
User::onUserLogin()
User::setCookieId()
User::setVotedUserId()
UserTable::getMap()
UserTable::getTableName()
UserTable::setCounter()
Vote::__construct()
Vote::add()
Vote::canEdit()
Vote::canParticipate()
Vote::canRead()
Vote::canReadResult()
Vote::canRevote()
Vote::canVote()
Vote::checkData()
Vote::clearCache()
Vote::clearVotingCache()
Vote::copyChildren()
Vote::copyEvents()
Vote::copyQuestion()
Vote::delete()
Vote::exportExcel()
Vote::fillStatistic()
Vote::get()
Vote::getChannel()
Vote::getCopiedIdsRelation()
Vote::getData()
Vote::getDataFromRequest()
Vote::getEventBallots()
Vote::getFields()
Vote::getQuestion()
Vote::getQuestions()
Vote::getStatistic()
Vote::init()
Vote::isVotedFor()
Vote::offsetExists()
Vote::offsetGet()
Vote::offsetSet()
Vote::offsetUnset()
Vote::prepareFieldsToCopy()
Vote::registerEvent()
Vote::resume()
Vote::saveData()
Vote::sendVotingMessage()
Vote::setQuestionCopier()
Vote::setResetVotingResult()
Vote::stop()
Vote::voteFor()
VoteGetFilterOperation()
VoteTable::checkFields()
VoteTable::getMap()
VoteTable::getTableName()
VoteTable::modifyData()
VoteTable::onAfterAdd()
VoteTable::onAfterUpdate()
VoteTable::onBeforeAdd()
VoteTable::onBeforeUpdate()
VoteTable::setCounter()
VoteTable::validateActivityDate()
VoteUserType::checkFields()
VoteUserType::checkSettings()
VoteUserType::detectType()
VoteUserType::getAdminListEditHTML()
VoteUserType::getAdminListEditHTMLMulty()
VoteUserType::getAdminListViewHTML()
VoteUserType::getDBColumnType()
VoteUserType::getEditFormHTML()
VoteUserType::getFilterHTML()
VoteUserType::getPublicViewHTML()
VoteUserType::getSettingsHTML()
VoteUserType::getUserTypeDescription()
VoteUserType::onBeforeCopy()
VoteUserType::onBeforePostUserFieldUpdate()
VoteUserType::onBeforeSave()
VoteUserType::onDelete()
VoteUserType::onSearchIndex()
VoteUserType::prepareSettings()
VoteVoteEditFromArray()
_CVoteDBResult::Fetch()
_CVoteDBResult::_CVoteDBResult()
arrAnswersSort()
fill_arc()
vote::DoInstall()
vote::DoUninstall()
vote::InstallDB()
vote::InstallEvents()
vote::InstallFiles()
vote::InstallUserFields()
vote::UnInstallDB()
vote::UnInstallEvents()
vote::UnInstallFiles()
vote::UnInstallUserFields()
vote::vote()