1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CLearnPath
Граф наследования:CLearnPath:
ILearnPath

Открытые члены

 __construct ()
 SetPath ()
 SetPathFromArray ($arPath)
 ImportUrlencoded ($str)
 GetPathAsArray ()
 ExportUrlencoded ()
 GetTop ()
 GetBottom ()
 PopBottom ()
 ShiftTop ()
 GetPathAsHumanReadableString ($delimiter='/', $pattern='#NAME#')
 Count ()

Открытые статические члены

static IsUrlencodedPath ($str)

Поля данных

const DELIMITER = '.'

Защищенные члены

 _SetPath ($args)

Защищенные данные

 $arPath = array()

Подробное описание

См. определение в файле clearnpath.php строка 78

Конструктор(ы)

◆ __construct()

__construct ( )
Аргументы
integer/string/array(if string must be strictly castable to integer). allowed many params. First param - is the id of top, etc. if array => than it must be one argument and it will be parsed as path in format for self::SetPathFromArray()

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 83

Методы

◆ _SetPath()

_SetPath ( $args)
protected

См. определение в файле clearnpath.php строка 93

◆ Count()

Count ( )
Возвращает
integer count of elements in path

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 233

◆ ExportUrlencoded()

ExportUrlencoded ( )
Возвращает
string urlencoded path, which can be used for importUrlencoded()

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 160

◆ GetBottom()

GetBottom ( )
Возвращает
integer/bool id of bottom (right) element in path. If path is empty - returns FALSE

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 173

◆ GetPathAsArray()

GetPathAsArray ( )
Возвращает
array of lessons' ids in current path (from top to bottom)

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 155

◆ GetPathAsHumanReadableString()

GetPathAsHumanReadableString ( $delimiter = '/',
$pattern = '#NAME#' )
Аргументы
stringdelimiter, by default is ' / '
stringpattern, how names will be renderred. Default pattern is '#NAME#' Available fields: #NAME#, #LESSON_ID#
Возвращает
string such as "Course bla bla bla / chapter XXX / lesson XXX"

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 207

◆ GetTop()

GetTop ( )
Возвращает
integer/bool id of top (left) element in path. If path is empty - returns FALSE

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 165

◆ ImportUrlencoded()

ImportUrlencoded ( $str)
Аргументы
stringurlencoded path, which can produced by exportUrlencoded()

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 136

◆ IsUrlencodedPath()

IsUrlencodedPath ( $str)
static

См. определение в файле clearnpath.php строка 125

◆ PopBottom()

PopBottom ( )

Removes last element (if exists) from path

Возвращает
integer/bool id of bottom (right) element in path. If path is empty - returns FALSE

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 183

◆ SetPath()

SetPath ( )
Аргументы
integer/string(if string must be strictly castable to integer). allowed many params. First param - is the id of top, etc.

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 88

◆ SetPathFromArray()

SetPathFromArray ( $arPath)
Аргументы
arrayof lessons' ids

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 119

◆ ShiftTop()

ShiftTop ( )

Removes first element (if exists) from path

Возвращает
integer/bool id of first (left) element in path. If path is empty - returns FALSE

Замещает ILearnPath.

См. определение в файле clearnpath.php строка 195

Поля

◆ $arPath

$arPath = array()
protected

См. определение в файле clearnpath.php строка 81

◆ DELIMITER

const DELIMITER = '.'

См. определение в файле clearnpath.php строка 80


Объявления и описания членов класса находятся в файле: