|
1C-Bitrix 25.700.0
|
Открытые статические члены | |
| 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
См. определение в файле ilearngraphrelation.php строка 12
|
static |
Get property for relation from $parentNodeId to $childNodeId.
| int | $parentNodeId | |
| int | $childNodeId | |
| string | $propertyName | ('SORT') |
| Exception | LearnException with code error LearnException\EXC_ERR_GR_GET_PROPERTY if relation isn't exists => message of exception === 'EA_NOT_EXISTS' |
Замещается в CLearnGraphRelation.
|
static |
Link two nodes from $parentNodeId to $childNodeId
| int | $parentNodeId | |
| int | $childNodeId | |
| array | of properties of the link. Currently available properties:
|
| Exception | LearnException with code error LearnException\EXC_ERR_GR_LINK |
Замещается в CLearnGraphRelation.
|
static |
Lists immediate childs
| integer | id of node |
Замещается в CLearnGraphRelation.
|
static |
Замещается в CLearnGraphRelation.
|
static |
Lists immediate parents
| integer | id of node |
Замещается в CLearnGraphRelation.
|
static |
Set property for relation from $parentNodeId to $childNodeId. Currently available properties:
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) |
| Exception | LearnException with code error LearnException\EXC_ERR_GR_SET_PROPERTY |
Замещается в CLearnGraphRelation.
|
static |
Remove relation from $parentNodeId to $childNodeId
| int | $parentNodeId | |
| int | $childNodeId |
| Exception | LearnException with code error LearnException\EXC_ERR_GR_UNLINK if relation isn't exists => message of exception === 'EA_NOT_EXISTS' |
Замещается в CLearnGraphRelation.