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

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

static Link ($parentNodeId, $childNodeId, $arProperties)
static Unlink ($parentNodeId, $childNodeId)
static SetProperty ($parentNodeId, $childNodeId, $propertyName, $value)
static GetProperty ($parentNodeId, $childNodeId, $propertyName)
static ListImmediateNeighbours ($nodeId)
static ListImmediateParents ($nodeId)
static ListImmediateChilds ($nodeId)

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

WARNING: nobody shouldn't rely on this code, because it's FOR INTERNAL USE ONLY. Any declared function can be removed or changed in future versions. This code can be changed without any notifications. DON'T USE it nowhere.

@access private

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

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

Методы

◆ GetProperty()

GetProperty ( $parentNodeId,
$childNodeId,
$propertyName )
static

Get property for relation from $parentNodeId to $childNodeId.

Аргументы
int$parentNodeId
int$childNodeId
string$propertyName('SORT')
Исключения
ExceptionLearnException with code error LearnException\EXC_ERR_GR_GET_PROPERTY if relation isn't exists => message of exception === 'EA_NOT_EXISTS'
Возвращает
mixed value of property (for 'SORT' - integer)

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

◆ Link()

Link ( $parentNodeId,
$childNodeId,
$arProperties )
static

Link two nodes from $parentNodeId to $childNodeId

Аргументы
int$parentNodeId
int$childNodeId
arrayof properties of the link. Currently available properties:
  • 'SORT', 32-bit integer
Исключения
ExceptionLearnException with code error LearnException\EXC_ERR_GR_LINK

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

◆ ListImmediateChilds()

ListImmediateChilds ( $nodeId)
static

Lists immediate childs

Аргументы
integerid of node
Возвращает
array of immediate childs (empty array if there is no childs)
См. также
example for ListImmediateNeighbours()

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

◆ ListImmediateNeighbours()

ListImmediateNeighbours ( $nodeId)
static

◆ ListImmediateParents()

ListImmediateParents ( $nodeId)
static

Lists immediate parents

Аргументы
integerid of node
Возвращает
array of immediate parents (empty array if there is no parents)
См. также
example for ListImmediateNeighbours()

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

◆ SetProperty()

SetProperty ( $parentNodeId,
$childNodeId,
$propertyName,
$value )
static

Set property for relation from $parentNodeId to $childNodeId. Currently available properties:

  • 'SORT', 32-bit integer

Warning: this method DON'T checks for existence of relation (due to CDatabase transactions problems), and it will not give any error or exception in that case.

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$parentNodeId
int$childNodeId
string$propertyName('SORT')
mixed$value(for 'SORT' - integer)
Исключения
ExceptionLearnException with code error LearnException\EXC_ERR_GR_SET_PROPERTY

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

◆ Unlink()

Unlink ( $parentNodeId,
$childNodeId )
static

Remove relation from $parentNodeId to $childNodeId

Аргументы
int$parentNodeId
int$childNodeId
Исключения
ExceptionLearnException with code error LearnException\EXC_ERR_GR_UNLINK if relation isn't exists => message of exception === 'EA_NOT_EXISTS'

Замещается в CLearnGraphRelation.

Примеры
C:/bitrix/modules/learning/classes/general/ilearngraphrelation.php.

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