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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnAfterAttemptFinishedCTestAttempt::AttemptFinished
OnAfterLearningGroupAddCLearningGroup::add
OnAfterLearningGroupDeleteCLearningGroup::delete
OnAfterLearningGroupMemberAddCLearningGroupMember::add
OnAfterLearningGroupUpdateCLearningGroup::update
OnAfterLessonAddCLearnLesson::Add
OnAfterLessonDeleteCLearnLesson::Delete
OnAfterLessonUpdateCLearnLesson::Update
OnAfterQuestionAddCLQuestion::Add
OnAfterQuestionDeleteCLQuestion::Delete
OnAfterQuestionUpdateCLQuestion::Update
OnAfterTestUpdateCTest::Update
OnBeforeCertificateCCertification::Certificate
OnBeforeLearningGroupAddCLearningGroup::add
OnBeforeLearningGroupDeleteCLearningGroup::delete
OnBeforeLearningGroupUpdateCLearningGroup::update
OnBeforeLessonAddCLearnLesson::Add
OnBeforeLessonDeleteCLearnLesson::Delete
OnBeforeLessonUpdateCLearnLesson::Update
OnBeforeTestUpdateCTest::Update
OnCheckCourseCompletedCCertification::IsCourseCompleted

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

КонстантаПроверяется
BX_COMP_MANAGED_CACHECLearningGroup::delete
CRON_MODECLearnAccess::IsBaseAccess
SITE_CHARSETCCoursePackage::CCoursePackage

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

Метод
CCertification::Add()
CCertification::Certificate()
CCertification::CheckFields()
CCertification::Delete()
CCertification::GetByID()
CCertification::GetFilter()
CCertification::GetList()
CCertification::IsCourseCompleted()
CCertification::LessonIdByCertId()
CCertification::Update()
CChapter::GetNavChain()
CCourse::Add()
CCourse::CheckFields()
CCourse::CourseGetLinkedLesson()
CCourse::Delete()
CCourse::FilterCreate()
CCourse::GetByID()
CCourse::GetCourseContent()
CCourse::GetGroupPermissions()
CCourse::GetList()
CCourse::GetPermission()
CCourse::GetSite()
CCourse::GetSiteId()
CCourse::GetSitePathes()
CCourse::IsCertificatesExists()
CCourse::MkOperationFilter()
CCourse::OnBeforeLangDelete()
CCourse::OnGroupDelete()
CCourse::OnSearchReindex()
CCourse::OnUserDelete()
CCourse::SetPermission()
CCourse::TimeToStr()
CCourse::Update()
CCourse::_Upper()
CCourseImport::CreateContent()
CCourseImport::CreateCourse()
CCourseImport::ImageTypeToMimeType()
CCourseImport::ImageTypeToMimeTypeByFileName()
CCourseImport::ImportPackage()
CCourseImport::_MakeFields()
CCourseImport::_MakeItems()
CCourseImport::__construct()
CCoursePackage::CCoursePackage()
CCoursePackage::CreateManifest()
CCoursePackage::CreatePackage()
CCoursePackage::CreateQTI()
CCoursePackage::CreateTMK()
CCoursePackage::_CreateContent()
CCoursePackage::_CreateCourseToc()
CCoursePackage::_GetCourseContent()
CCoursePackage::_GetResourceFiles()
CCoursePackage::_ReplaceImages()
CCoursePackage::_replace_img()
CCoursePackage::createQuestionItems()
CCourseSCORM::CreateContent()
CCourseSCORM::CreateCourse()
CCourseSCORM::ImportPackage()
CCourseSCORM::_MakeItems()
CCourseSCORM::__construct()
CGradeBook::Add()
CGradeBook::AddExtraAttempts()
CGradeBook::CheckFields()
CGradeBook::Delete()
CGradeBook::GetByID()
CGradeBook::GetExtraAttempts()
CGradeBook::GetFilter()
CGradeBook::GetList()
CGradeBook::LessonIdByGradeBookId()
CGradeBook::RecountAttempts()
CGradeBook::Update()
CGradeBook::__getSqlFromClause()
CLAnswer::Add()
CLAnswer::CheckFields()
CLAnswer::Delete()
CLAnswer::GetByID()
CLAnswer::GetFilter()
CLAnswer::GetList()
CLAnswer::GetStats()
CLAnswer::Update()
CLAnswer::getMultiStats()
CLQuestion::Add()
CLQuestion::CheckFields()
CLQuestion::Delete()
CLQuestion::GetByID()
CLQuestion::GetCount()
CLQuestion::GetFilter()
CLQuestion::GetList()
CLQuestion::Update()
CLTestMark::Add()
CLTestMark::CheckFields()
CLTestMark::Delete()
CLTestMark::GetByID()
CLTestMark::GetByPercent()
CLTestMark::GetFilter()
CLTestMark::GetList()
CLTestMark::Update()
CLearnAccess::Array2CommaSeparatedListForSQL()
CLearnAccess::EscapeAndAddLateralQuotes()
CLearnAccess::GetAccessCodes()
CLearnAccess::GetAccessCodesForSQL()
CLearnAccess::GetAccessSymbolsHashForSiteUser()
CLearnAccess::GetAccessibleLessonsList()
CLearnAccess::GetBasePermissions()
CLearnAccess::GetBitmaskOperationsForAllLessons()
CLearnAccess::GetInstance()
CLearnAccess::GetLessonPermissions()
CLearnAccess::GetNameForTask()
CLearnAccess::GetSymbolsAccessibleToLesson()
CLearnAccess::IsBaseAccess()
CLearnAccess::IsBaseAccessForCR()
CLearnAccess::IsLessonAccessible()
CLearnAccess::IsLoggedUserCanAccessModuleSettings()
CLearnAccess::ListAllPossibleRights()
CLearnAccess::ParseOperationsForSQL()
CLearnAccess::SQLClauseForAccessibleLessons()
CLearnAccess::SetBasePermissions()
CLearnAccess::SetLessonsPermissions()
CLearnAccess::StrictlyCastToInteger()
CLearnAccess::__clone()
CLearnAccess::__construct()
CLearnAccess::__wakeup()
CLearnAccessMacroses::CanUserAddLessonToParentLesson()
CLearnAccessMacroses::CanUserAddLessonWithoutParentLesson()
CLearnAccessMacroses::CanUserEditLesson()
CLearnAccessMacroses::CanUserEditLessonRights()
CLearnAccessMacroses::CanUserPerformAtLeastOneRelationAction()
CLearnAccessMacroses::CanUserRemoveLesson()
CLearnAccessMacroses::CanUserViewLessonAsPublic()
CLearnAccessMacroses::CanUserViewLessonContent()
CLearnAccessMacroses::CanUserViewLessonRelations()
CLearnAccessMacroses::CanUserViewLessonRights()
CLearnAccessMacroses::CanViewAdminMenu()
CLearnAccessMacroses::GetCurrentUserId()
CLearnAccessMacroses::ParseParamsWithUser()
CLearnAccessMacroses::getActiveLearningChaptersPeriod()
CLearnAccessMacroses::getActiveLearningGroupsPeriod()
CLearnCacheOfLessonTreeComponent::GetData()
CLearnCacheOfLessonTreeComponent::GetDataWoCache()
CLearnCacheOfLessonTreeComponent::IsDirty()
CLearnCacheOfLessonTreeComponent::MarkAsClean()
CLearnCacheOfLessonTreeComponent::MarkAsDirty()
CLearnCacheOfLessonTreeComponent::Purge()
CLearnGraphNode::Create()
CLearnGraphNode::GetByID()
CLearnGraphNode::Remove()
CLearnGraphNode::Update()
CLearnGraphNode::_CheckAndCanonizeFields()
CLearnGraphNode::_GetFieldsMap()
CLearnGraphNode::_GetReversedFieldsMap()
CLearnGraphNode::_InsertOrUpdate()
CLearnGraphNode::_PrepareDataForQuery()
CLearnGraphNode::_UploadFile()
CLearnGraphRelation::GetProperty()
CLearnGraphRelation::Link()
CLearnGraphRelation::ListImmediateChilds()
CLearnGraphRelation::ListImmediateNeighbours()
CLearnGraphRelation::ListImmediateParents()
CLearnGraphRelation::SetProperty()
CLearnGraphRelation::Unlink()
CLearnGraphRelation::_ListImmediateNeighbours()
CLearnHelper::CopyDirFiles()
CLearnHelper::FilterCreate()
CLearnHelper::FireEvent()
CLearnHelper::IsBaseFilenameSafe()
CLearnHelper::MkOperationFilter()
CLearnHelper::PatchLessonContentLinks()
CLearnHelper::SQLClauseForAllSubLessons()
CLearnHelper::getUpdatedToGraphStatus()
CLearnHelper::isUpdatedToGraph()
CLearnHelper::setUpdatedToGraphStatus()
CLearnInstall201203ConvertDB::AddPath()
CLearnInstall201203ConvertDB::Commit()
CLearnInstall201203ConvertDB::ConvertDB()
CLearnInstall201203ConvertDB::ConvertPermissions()
CLearnInstall201203ConvertDB::InitializeNewRightsModel()
CLearnInstall201203ConvertDB::IsNewRightsModelInitialized()
CLearnInstall201203ConvertDB::ReCreateTriggersForMSSQL()
CLearnInstall201203ConvertDB::Rollback()
CLearnInstall201203ConvertDB::StartTransaction()
CLearnInstall201203ConvertDB::_CheckOperationsInDB()
CLearnInstall201203ConvertDB::_CheckTasksInDB()
CLearnInstall201203ConvertDB::_CheckTasksOperationsRelations()
CLearnInstall201203ConvertDB::_CreateEdgeForNodes()
CLearnInstall201203ConvertDB::_CreateEdgesTbl()
CLearnInstall201203ConvertDB::_CreateFieldsInTbls()
CLearnInstall201203ConvertDB::_CreateTblRightsAll()
CLearnInstall201203ConvertDB::_GetChapterIdInNewDataModel()
CLearnInstall201203ConvertDB::_GetCourseIdInNewDataModel()
CLearnInstall201203ConvertDB::_GiveUp()
CLearnInstall201203ConvertDB::_IsAlreadyConverted()
CLearnInstall201203ConvertDB::_MarkLessonAsProcessed()
CLearnInstall201203ConvertDB::_RemoveFieldsFromLesson()
CLearnInstall201203ConvertDB::_RemoveOrphanedTables()
CLearnInstall201203ConvertDB::_RightsModelCreateOperations()
CLearnInstall201203ConvertDB::_RightsModelCreateTasksAndRelation()
CLearnInstall201203ConvertDB::_RightsModelGetAllOperations()
CLearnInstall201203ConvertDB::_RightsModelGetTasksWithOperations()
CLearnInstall201203ConvertDB::_RightsModelPurge()
CLearnInstall201203ConvertDB::_UnrepeatableCreateLesson()
CLearnInstall201203ConvertDB::_buildEdges()
CLearnInstall201203ConvertDB::_processChapters()
CLearnInstall201203ConvertDB::_processCourses()
CLearnInstall201203ConvertDB::avoidTimeout()
CLearnInstall201203ConvertDB::run()
CLearnLesson::Add()
CLearnLesson::BecomeCourse()
CLearnLesson::CountImmediateChilds()
CLearnLesson::CourseBecomeLesson()
CLearnLesson::Delete()
CLearnLesson::DeleteRecursiveLikeHardlinks()
CLearnLesson::GetByID()
CLearnLesson::GetByIDAsArr()
CLearnLesson::GetCourseToLessonMap()
CLearnLesson::GetCourseToLessonMap_LoadFromDB()
CLearnLesson::GetCourseToLessonMap_ReloadCache()
CLearnLesson::GetFilter()
CLearnLesson::GetLinkedCourse()
CLearnLesson::GetList()
CLearnLesson::GetListOfAncestors()
CLearnLesson::GetListOfImmediateChilds()
CLearnLesson::GetListOfImmediateParents()
CLearnLesson::GetListOfParentPathes()
CLearnLesson::GetListOfParentPathesRecursive()
CLearnLesson::GetListUni()
CLearnLesson::GetTree()
CLearnLesson::IsPublishProhibited()
CLearnLesson::LessonIdByChapterId()
CLearnLesson::ListImmediateChilds()
CLearnLesson::ListImmediateNeighbours()
CLearnLesson::ListImmediateParents()
CLearnLesson::PublishProhibitionPurge()
CLearnLesson::PublishProhibitionPurge_OnBeforeRelationRemove()
CLearnLesson::PublishProhibitionSetTo()
CLearnLesson::RelationAdd()
CLearnLesson::RelationGet()
CLearnLesson::RelationRemove()
CLearnLesson::RelationUpdate()
CLearnLesson::Update()
CLearnLesson::_CanonizeAndCheckAdditionalParamsForAddCourse()
CLearnLesson::_EnsureArgsStrictlyCastableToIntegers()
CLearnLesson::_ExtractAdditionalCourseFields()
CLearnLesson::_funcDelete_ParseOptions()
CLearnLessonTree::BuildTreeRecursive()
CLearnLessonTree::EnsureStrictlyCastableToInt()
CLearnLessonTree::GetLessonsIdListInTree()
CLearnLessonTree::GetTree()
CLearnLessonTree::GetTreeAsList()
CLearnLessonTree::GetTreeAsListOldMode()
CLearnLessonTree::__construct()
CLearnParsePermissionsFromFilter::DetermineRequestedUserId()
CLearnParsePermissionsFromFilter::IsNeedCheckPerm()
CLearnParsePermissionsFromFilter::ParseRequestedOperations()
CLearnParsePermissionsFromFilter::SQLForAccessibleLessons()
CLearnParsePermissionsFromFilter::__construct()
CLearnPath::Count()
CLearnPath::ExportUrlencoded()
CLearnPath::GetBottom()
CLearnPath::GetPathAsArray()
CLearnPath::GetPathAsHumanReadableString()
CLearnPath::GetTop()
CLearnPath::ImportUrlencoded()
CLearnPath::IsUrlencodedPath()
CLearnPath::PopBottom()
CLearnPath::SetPath()
CLearnPath::SetPathFromArray()
CLearnPath::ShiftTop()
CLearnPath::_SetPath()
CLearnPath::__construct()
CLearnRelationHelper::ProccessPOST()
CLearnRelationHelper::RenderForm()
CLearnRenderRightsEdit::LearningShowRights()
CLearnRenderRightsEdit::RenderBaseRightsTab()
CLearnRenderRightsEdit::RenderLessonRightsTab()
CLearnSharedArgManager::CheckParseParams()
CLearnSharedArgManager::GetParsedOptions()
CLearnSharedArgManager::ParseOptions()
CLearnSharedArgManager::StaticParser()
CLearnSharedArgManager::__construct()
CLearningEvent::GetAuditTypes()
CLearningEvent::GetEventInfo()
CLearningEvent::GetFilter()
CLearningEvent::GetFilterSQL()
CLearningEvent::MakeMainObject()
CLearningGroup::CheckFields()
CLearningGroup::add()
CLearningGroup::delete()
CLearningGroup::getFilter()
CLearningGroup::getList()
CLearningGroup::update()
CLearningGroupLesson::add()
CLearningGroupLesson::checkFields()
CLearningGroupLesson::delete()
CLearningGroupLesson::deleteByGroup()
CLearningGroupLesson::deleteByLesson()
CLearningGroupLesson::getDelays()
CLearningGroupLesson::getFilter()
CLearningGroupLesson::getList()
CLearningGroupLesson::onAfterLearningGroupDelete()
CLearningGroupLesson::setDelays()
CLearningGroupLesson::update()
CLearningGroupMember::add()
CLearningGroupMember::checkFields()
CLearningGroupMember::delete()
CLearningGroupMember::deleteByGroup()
CLearningGroupMember::deleteByUser()
CLearningGroupMember::getFilter()
CLearningGroupMember::getList()
CLearningGroupMember::onAfterLearningGroupDelete()
CLesson::GetList()
CRatingsComponentsLearning::OnAddRatingVote()
CRatingsComponentsLearning::OnCancelRatingVote()
CRatingsComponentsLearning::OnGetRatingContentOwner()
CSitePath::Add()
CSitePath::CheckFields()
CSitePath::Delete()
CSitePath::DeleteBySiteID()
CSitePath::GetByID()
CSitePath::GetBySiteID()
CSitePath::GetFilterOperation()
CSitePath::GetList()
CSitePath::PrepareSql()
CSitePath::Update()
CStudent::Add()
CStudent::CheckFields()
CStudent::Delete()
CStudent::GenerateTranscipt()
CStudent::GetByID()
CStudent::GetFilter()
CStudent::GetList()
CStudent::Update()
CTest::Add()
CTest::CheckFields()
CTest::Delete()
CTest::GetByID()
CTest::GetCount()
CTest::GetFilter()
CTest::GetList()
CTest::GetRandFunction()
CTest::GetStats()
CTest::Update()
CTest::isPrevPassed()
CTestAttempt::Add()
CTestAttempt::AttemptFinished()
CTestAttempt::CheckFields()
CTestAttempt::CreateAttemptQuestions()
CTestAttempt::Delete()
CTestAttempt::DoInsert()
CTestAttempt::GetByID()
CTestAttempt::GetCount()
CTestAttempt::GetFilter()
CTestAttempt::GetList()
CTestAttempt::IsTestCompleted()
CTestAttempt::IsTestFailed()
CTestAttempt::OnAttemptChange()
CTestAttempt::RecountQuestions()
CTestAttempt::Update()
CTestAttempt::_GetListSQLFormer()
CTestAttempt::getSpeedFieldSql()
CTestResult::Add()
CTestResult::AddResponse()
CTestResult::CheckFields()
CTestResult::Delete()
CTestResult::GetByID()
CTestResult::GetCorrectCount()
CTestResult::GetCount()
CTestResult::GetFilter()
CTestResult::GetList()
CTestResult::GetPercent()
CTestResult::GetProgress()
CTestResult::OnTestResultChange()
CTestResult::Update()
LearnException::__construct()
LearnException::learning_log_exception()
Learning_CIBlockPropertyUserID::GetPropertyFieldHtml()
Learning_FindUserIDNew()
Search::getCoursePaths()
Search::getIndexItems()
Search::getLessonCourseId()
Search::getSitePaths()
Search::handleReindex()
Search::indexLesson()
_ShowHiddenValue()
_ShowUserPropertyField()
learning::DoInstall()
learning::DoUninstall()
learning::GetModuleRightList()
learning::InitializeNewRightsModel()
learning::InstallDB()
learning::InstallEvents()
learning::InstallFiles()
learning::UnInstallDB()
learning::UnInstallEvents()
learning::UnInstallFiles()
learning::_AddConvertDbNotify()
learning::_RemoveConvertDbNotify()
learning::_RightsModelCreateOperations()
learning::_RightsModelCreateTasksAndRelation()
learning::_RightsModelGetAllOperations()
learning::_RightsModelGetTasksWithOperations()
learning::_RightsModelPurge()
learning::learning()