1C-Bitrix 25.700.0
|
Открытые члены | |
IsBaseAccessForCR ($in_bitmaskRequested, $isUseCache=false) | |
IsBaseAccess ($in_bitmaskRequested, $isUseCache=false, $checkForAuthor=false) | |
SetBasePermissions ($in_arPermPairs) | |
GetBasePermissions () | |
GetLessonPermissions ($in_lessonId) | |
SetLessonsPermissions ($in_arPermissions) | |
IsLessonAccessible ($in_lessonId, $in_bitmaskOperations, $isUseCache=false) | |
GetAccessibleLessonsList ($in_bitmaskOperations, $isUseCache=false, $lessonId=0) | |
SQLClauseForAccessibleLessons ($in_bitmaskOperations, $isUseCache=false, $lessonId=0, $in_prfx='DEFPRFX') | |
Открытые члены унаследованные от ILearnAccessInterface | |
GetAccessibleLessonsList ($in_bitmaskOperations, $isUseCache=false) |
Открытые статические члены | |
static | GetInstance ($in_userId) |
static | GetAccessSymbolsHashForSiteUser () |
static | GetNameForTask ($taskId) |
static | ListAllPossibleRights () |
static | GetSymbolsAccessibleToLesson ($in_lessonId, $in_bitmaskOperations, $isUseCache=false) |
static | IsLoggedUserCanAccessModuleSettings () |
Поля данных | |
const | OP_LESSON_READ = 0x0001 |
const | OP_LESSON_CREATE = 0x0002 |
const | OP_LESSON_WRITE = 0x0004 |
const | OP_LESSON_REMOVE = 0x0008 |
const | OP_LESSON_LINK_TO_PARENTS = 0x0010 |
const | OP_LESSON_UNLINK_FROM_PARENTS = 0x0020 |
const | OP_LESSON_LINK_DESCENDANTS = 0x0040 |
const | OP_LESSON_UNLINK_DESCENDANTS = 0x0080 |
const | OP_LESSON_MANAGE_RIGHTS = 0x0100 |
Защищенные члены | |
GetBitmaskOperationsForAllLessons ($arUserAccessSymbols) | |
GetAccessCodesForSQL ($isUseCache=false) | |
GetAccessCodes ($isUseCache=false) |
Защищенные статические члены | |
static | ParseOperationsForSQL ($in_operations) |
static | Array2CommaSeparatedListForSQL ($in_arData) |
static | EscapeAndAddLateralQuotes ($txt) |
static | StrictlyCastToInteger ($var) |
Защищенные данные | |
$userId = false |
Статические защищенные данные | |
static | $instanceOfSelf = array() |
static | $CAccessLastUpdated = false |
static | $arOperations |
См. определение в файле clearnaccess.php строка 131
|
staticprotected |
См. определение в файле clearnaccess.php строка 975
|
staticprotected |
См. определение в файле clearnaccess.php строка 985
|
protected |
См. определение в файле clearnaccess.php строка 905
|
protected |
См. определение в файле clearnaccess.php строка 884
GetAccessibleLessonsList | ( | $in_bitmaskOperations, | |
$isUseCache = false, | |||
$lessonId = 0 ) |
См. определение в файле clearnaccess.php строка 643
|
static |
If user logged in - get hash for of access symbols for user. If user isn't logged in - get hash of access symbols for not authorized users.
См. определение в файле clearnaccess.php строка 186
GetBasePermissions | ( | ) |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 465
|
protected |
См. определение в файле clearnaccess.php строка 793
|
static |
$in_userId |
См. определение в файле clearnaccess.php строка 171
GetLessonPermissions | ( | $in_lessonId | ) |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 499
|
static |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 207
|
static |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 259
int | bitmask of operations (constants self::OP_...) |
bool | use cache |
bool | does include CR to check? (false by default) |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 340
IsBaseAccessForCR | ( | $in_bitmaskRequested, | |
$isUseCache = false ) |
This function include CR to access symbols when checks base rights.
int | bitmask of operations (constants self::OP_...) |
bool | use cache |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 327
IsLessonAccessible | ( | $in_lessonId, | |
$in_bitmaskOperations, | |||
$isUseCache = false ) |
This function checks access rights for user to given lesson. It's includes checks for base rights (shared for all lessons).
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 626
|
static |
См. определение в файле clearnaccess.php строка 992
|
static |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 236
|
staticprotected |
См. определение в файле clearnaccess.php строка 847
SetBasePermissions | ( | $in_arPermPairs | ) |
array | $arPermPairs,for | example: array ('CR' => 4, 'U2' => '1', ...). All unlisted access symbols ("subjects") will be removed. |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 388
SetLessonsPermissions | ( | $in_arPermissions | ) |
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 539
SQLClauseForAccessibleLessons | ( | $in_bitmaskOperations, | |
$isUseCache = false, | |||
$lessonId = 0, | |||
$in_prfx = 'DEFPRFX' ) |
There are some operations, granted on all lessons in context of some user. So, we must adjust $in_bitmaskOperations on operations, which are already accessible by user (in both roles: as author(CR) and as just any user(Any)). User role is unknown now, it will be known on SQL query only.
Now, switch off bits for operations, that are available for current user on all lessons (or all own lessons for author). Because, we must check only rights, that are not available on all lessons yet.
Замещает ILearnAccessInterface.
См. определение в файле clearnaccess.php строка 679
|
staticprotected |
См. определение в файле clearnaccess.php строка 1003
|
staticprotected |
См. определение в файле clearnaccess.php строка 148
|
staticprotected |
См. определение в файле clearnaccess.php строка 134
|
staticprotected |
См. определение в файле clearnaccess.php строка 133
|
protected |
См. определение в файле clearnaccess.php строка 136
const OP_LESSON_CREATE = 0x0002 |
См. определение в файле clearnaccess.php строка 139
const OP_LESSON_LINK_DESCENDANTS = 0x0040 |
См. определение в файле clearnaccess.php строка 144
const OP_LESSON_LINK_TO_PARENTS = 0x0010 |
См. определение в файле clearnaccess.php строка 142
const OP_LESSON_MANAGE_RIGHTS = 0x0100 |
См. определение в файле clearnaccess.php строка 146
const OP_LESSON_READ = 0x0001 |
См. определение в файле clearnaccess.php строка 138
const OP_LESSON_REMOVE = 0x0008 |
См. определение в файле clearnaccess.php строка 141
const OP_LESSON_UNLINK_DESCENDANTS = 0x0080 |
См. определение в файле clearnaccess.php строка 145
const OP_LESSON_UNLINK_FROM_PARENTS = 0x0020 |
См. определение в файле clearnaccess.php строка 143
const OP_LESSON_WRITE = 0x0004 |
См. определение в файле clearnaccess.php строка 140