1C-Bitrix 25.700.0
|
Открытые статические члены | |
static | Add ($arFields, $isCourse=false, $parentLessonId=true, $arProperties=array('SORT'=> 500), $isCheckPermissions=true, $checkPermissionsForUserId=-1) |
static | Update ($id, $arFields) |
static | DeleteRecursiveLikeHardlinks ($in_data) |
static | Delete ($lesson_id) |
static | GetByID ($id) |
static | GetByIDAsArr ($id) |
static | GetLinkedCourse ($lessonId) |
static | GetCourseToLessonMap ($bRefreshCache=false) |
static | RelationAdd ($parentLessonId, $childLessonId, $arProperties) |
static | RelationUpdate ($parentLessonId, $childLessonId, $arProperties) |
static | RelationGet ($parentLessonId, $childLessonId) |
static | RelationRemove ($parentLessonId, $childLessonId) |
static | ListImmediateParents ($lessonId) |
static | ListImmediateChilds ($lessonId) |
static | ListImmediateNeighbours ($lessonId) |
static | GetList ($arOrder=array(), $arFilter=array(), $arSelectFields=array(), $arNavParams=array()) |
static | GetListOfImmediateChilds ($lessonId, $arOrder=array(), $arFilter=array(), $arSelectFields=array(), $arNavParams=array()) |
static | GetListOfImmediateParents ($lessonId, $arOrder=array(), $arFilter=array(), $arSelectFields=array(), $arNavParams=array()) |
static | GetTree ( $lessonId, $arOrder=array('EDGE_SORT'=> 'asc'), $arFilter=array(), $publishProhibitionMode=true, $arSelectFields=array()) |
static | CountImmediateChilds ($lessonId) |
static | LessonIdByChapterId ($chapterId) |
static | GetListOfAncestors ($lessonId, $stopAtLessonId=false, $stopBeforeLessonId=false, $arIgnoreEdges=array()) |
static | GetListOfParentPathes ($lessonId, $breakOnLessonId=false, $breakBeforeLesson=false, $arIgnoreEdges=array()) |
static | IsPublishProhibited ($in_lessonId, $in_contextCourseLessonId) |
static | PublishProhibitionSetTo ($in_lessonId, $in_contextCourseLessonId, $in_isProhibited) |
Открытые статические члены унаследованные от ILearnLesson | |
static | Add ($arFields, $isCourse=false, $parentLessonId=true, $arProperties=array('SORT'=> 500)) |
static | GetList ($arOrder=array(), $arFilter=array()) |
static | GetListOfImmediateParents ($lessonId, $arOrder=array(), $arFilter=array(), $arSelectFields=array()) |
static | GetListOfImmediateChilds ($lessonId, $arOrder=array(), $arFilter=array(), $arSelectFields=array()) |
static | GetTree ( $lessonId, $arOrder=array('EDGE_SORT'=> 'asc'), $arFilter=array(), $publishProhibitionMode=true) |
Поля данных | |
const | GET_LIST_ALL = 0x0 |
const | GET_LIST_IMMEDIATE_CHILDS_OF = 0x1 |
const | GET_LIST_IMMEDIATE_PARENTS_OF = 0x2 |
const | PUBLISH_PROHIBITION_PURGE_ALL_LESSONS_IN_COURSE_CONTEXT = 0x1 |
const | PUBLISH_PROHIBITION_PURGE_LESSON_IN_ALL_COURSE_CONTEXT = 0x2 |
const | PUBLISH_PROHIBITION_PURGE_BOTH = 0x3 |
Защищенные статические члены | |
static | _ExtractAdditionalCourseFields (&$arFields) |
static | _CanonizeAndCheckAdditionalParamsForAddCourse ($arFields, $forUpdate=false) |
static | _funcDelete_ParseOptions ($lesson_id) |
static | GetCourseToLessonMap_ReloadCache () |
static | GetCourseToLessonMap_LoadFromDB () |
static | BecomeCourse ($lessonId, $arFields) |
static | CourseBecomeLesson ($courseId) |
static | _EnsureArgsStrictlyCastableToIntegers () |
static | GetListUni ($arOrder=array(), $arFilter=array(), $arSelectFields=array(), $mode=self::GET_LIST_ALL, $lessonId=-1, $arNavParams=array()) |
static | GetFilter ($arFilter=array(), $mode) |
static | GetListOfParentPathesRecursive ($arPathes, &$arAlreadyProcessedLessons, $arIgnoreEdges=array()) |
static | PublishProhibitionPurge ($in_lessonId, $in_purgeMode) |
static | PublishProhibitionPurge_OnBeforeRelationRemove ($in_parentLessonId, $in_childLessonId) |
См. определение в файле clearnlesson.php строка 421
|
staticprotected |
Canonize and checks additional params when adding course
LearnException | with error bit set LearnException\EXC_ERR_ALL_PARAMS |
См. определение в файле clearnlesson.php строка 591
|
staticprotected |
LearnException | with error bit set LearnException\EXC_ERR_ALL_LOGIC and errmessage "EA_PARAMS", if any of args isn't of integer type or can't be strictly casted to integer. |
См. определение в файле clearnlesson.php строка 1456
|
staticprotected |
См. определение в файле clearnlesson.php строка 552
|
staticprotected |
См. определение в файле clearnlesson.php строка 812
|
staticfinal |
См. определение в файле clearnlesson.php строка 440
|
staticprotected |
WARNING: don't use this method, it's for internal use only
Convert lesson to course (lesson will stay exists, but new course binded to lesson will be created)
WARNING: this method terminates (by die()/exit()) current execution flow when SQL server error occured. It's due to bug in CDatabase::Update() in main module (version info: define("SM_VERSION","11.0.12"); define("SM_VERSION_DATE","2012-02-21 17:00:00"); // YYYY-MM-DD HH:MI:SS )
int | $lessonId | |
array | of pairs field => value for course additional params. Allowed are:
|
@access private
This code will be useful after bug in CDatabase::Update() and CDatabase::Insert() will be solved and $ignore_errors setted to true in Insert()/Update() call above.
См. определение в файле clearnlesson.php строка 1321
|
staticfinal |
Counts how much immediate childs given lesson has.
int | id of lesson |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 2036
|
staticprotected |
WARNING: don't use this method, it's for internal use only
Convert course to non-course lesson (course will be removed, but lesson will stay exists)
WARNING: this method terminates (by die()/exit()) current execution flow when SQL server error occured. It's due to bug in CDatabase::Update() in main module (version info: define("SM_VERSION","11.0.12"); define("SM_VERSION_DATE","2012-02-21 17:00:00"); // YYYY-MM-DD HH:MI:SS )
int | $courseId | (returned by GetLinkedCourse($lessonId) ) |
@access private
This code will be useful after bug in CDatabase::Update() and CDatabase::Insert() will be solved and $ignore_errors setted to true in Insert()/Update() call above.
См. определение в файле clearnlesson.php строка 1390
|
staticfinal |
Removes lesson and all relations from/to it.
integer/array. | If not array => param interpreted as id of lesson to be removed. If array => param interpreted as array of params. Available params are:
|
LearnException | with errcode bit set LearnException\EXC_ERR_GN_REMOVE, also errmsg === 'EA_NOT_EXISTS' if there is wasn't node with this id. |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 974
|
staticfinal |
Detach the given lesson from all parents and recursively remove descendants, excepts descendants, that have ancestors outside of descendants of the given lesson. Such lessons will not be removed, but will be unlinked from lessons, which will be really removed.
integer/array. | If not array => param interpreted as id of lesson to be removed. If array => param interpreted as array of params. Available params are:
|
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 876
|
staticfinal |
LearnException | with error bit set EXC_ERR_ALL_PARAMS |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1148
|
staticfinal |
WARNING: don't use this function, it's for internal use only.
integer | id of node to be getted |
LearnException | with errcode bit set LearnException\EXC_ERR_GN_GETBYID. Messages can be: 'EA_PARAMS', 'EA_ACCESS_DENIED', 'EA_SQLERROR', 'EA_NOT_EXISTS'. |
@access private
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1154
|
staticfinal |
This function is for internal use only. It's not a part of public API.
@access private
См. определение в файле clearnlesson.php строка 1215
|
staticprotected |
См. определение в файле clearnlesson.php строка 1261
|
staticprotected |
См. определение в файле clearnlesson.php строка 1254
|
staticprotected |
@access protected
LearnException | with error bit set EXC_ERR_ALL_PARAMS |
См. определение в файле clearnlesson.php строка 1883
|
staticfinal |
Gets id of course corresponded to given lesson
integer | id of lesson |
LearnException | with error bit set (one of): |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1198
|
staticfinal |
См. определение в файле clearnlesson.php строка 1849
|
staticfinal |
@access private
См. определение в файле clearnlesson.php строка 2099
|
staticfinal |
См. определение в файле clearnlesson.php строка 1855
|
staticfinal |
См. определение в файле clearnlesson.php строка 1861
|
staticfinal |
|
staticprotected |
См. определение в файле clearnlesson.php строка 2154
|
staticprotected |
GROUP BY works for MySQL, MSSQL, Oracle select a.id, a.NAME, count(b.USER_ID) as C from b_group a, b_user_group b where a.id = b.GROUP_ID group by a.id, a.NAME order by C
См. определение в файле clearnlesson.php строка 1532
|
staticfinal |
См. определение в файле clearnlesson.php строка 1867
|
staticfinal |
Checks for probition of publishing for given lesson in context of given course.
int | lesson id to be checked for publish prohibition |
int | lesson id in context of which check. Must corresponds to course. |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 2218
|
staticfinal |
This function is DEPRECATED
Get lesson id of lesson, previously was chapter (before convertion to new data model.
WARNING: This function is for backward compatibility of old-style links to courses, chapters, lessons resolving in components.
Don't use it in new projects, when there is no old-style links.
@access public
См. определение в файле clearnlesson.php строка 2073
|
staticfinal |
Lists immediate childs.
integer | id of lesson |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1520
|
staticfinal |
Lists immediate neighbours.
integer | id of lesson |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1526
|
staticfinal |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1514
|
staticprotected |
int | lesson id |
int | purge mode (PUBLISH_PROHIBITION_PURGE_ALL_LESSONS_IN_COURSE_CONTEXT, PUBLISH_PROHIBITION_PURGE_LESSON_IN_ALL_COURSE_CONTEXT, PUBLISH_PROHIBITION_PURGE_BOTH) |
См. определение в файле clearnlesson.php строка 2301
|
staticprotected |
Cleanup publish prohibitions to be orphaned on relation remove.
int | $parentLessonId | of relation to be removed |
int | $childLessonId | of relation to be removed |
См. определение в файле clearnlesson.php строка 2356
|
staticfinal |
int | lesson id for publish (un)prohibition |
int | lesson id in context of which publish (un)prohibition will be done |
bool | if true - lesson will be prohibited for publish. If false - prohibition will be removed. |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 2246
|
staticfinal |
Link two lessons from $parentLessonId to $childLessonId
int | $parentLessonId | |
int | $childLessonId | |
array | of properties of the link. Currently available properties:
|
Exception | LearnException with code error bit set LearnException\EXC_ERR_GR_LINK |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1475
|
staticfinal |
Get parametres of relation between two lessons
int | $parentLessonId | |
int | $childLessonId |
Exception | LearnException with code error bit set LearnException\EXC_ERR_GR_GET_PROPERTY |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1495
|
staticfinal |
Remove relation from $parentLessonId to $childLessonId
int | $parentLessonId | |
int | $childLessonId |
Exception | LearnException with code error bit set LearnException\EXC_ERR_GR_UNLINK if relation isn't exists => message of exception === 'EA_NOT_EXISTS' |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1504
|
staticfinal |
Update parametres of relation between two lessons
int | $parentLessonId | |
int | $childLessonId | |
array | of properties of the link. Currently available properties:
|
Exception | LearnException with code error bit set LearnException\EXC_ERR_GR_SET_PROPERTY |
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 1486
|
staticfinal |
Changes lesson's data
WARNING: this method terminates (by die()/exit()) current execution flow when SQL server error occured. It's due to bug in CDatabase::Update() in main module (version info: define("SM_VERSION","11.0.12"); define("SM_VERSION_DATE","2012-02-21 17:00:00"); // YYYY-MM-DD HH:MI:SS )
integer | id of node to be updated |
array | of pairs field => value for lesson If lesson is the course, additional fields maybe set:
|
LearnException | with errcodes bit set (one of):
|
This code will be useful after bug in CDatabase::Update() and CDatabase::Insert() will be solved and $ignore_errors setted to true in Insert()/Update() call above.
Замещает ILearnLesson.
См. определение в файле clearnlesson.php строка 691
const GET_LIST_ALL = 0x0 |
См. определение в файле clearnlesson.php строка 423
const GET_LIST_IMMEDIATE_CHILDS_OF = 0x1 |
См. определение в файле clearnlesson.php строка 424
const GET_LIST_IMMEDIATE_PARENTS_OF = 0x2 |
См. определение в файле clearnlesson.php строка 425
const PUBLISH_PROHIBITION_PURGE_ALL_LESSONS_IN_COURSE_CONTEXT = 0x1 |
См. определение в файле clearnlesson.php строка 431
const PUBLISH_PROHIBITION_PURGE_BOTH = 0x3 |
См. определение в файле clearnlesson.php строка 437
const PUBLISH_PROHIBITION_PURGE_LESSON_IN_ALL_COURSE_CONTEXT = 0x2 |
См. определение в файле clearnlesson.php строка 434