1C-Bitrix 25.700.0
|
Открытые статические члены | |
static | ListImmediateParents ($nodeId) |
static | ListImmediateChilds ($nodeId) |
static | ListImmediateNeighbours ($nodeId) |
static | Link ($parentNodeId, $childNodeId, $arProperties) |
static | Unlink ($parentNodeId, $childNodeId) |
static | SetProperty ($parentNodeId, $childNodeId, $propertyName, $value) |
static | GetProperty ($parentNodeId, $childNodeId, $propertyName) |
Поля данных | |
const | NBRS_IMDT_PARENTS = 0x1 |
const | NBRS_IMDT_CHILDS = 0x2 |
Защищенные статические члены | |
static | _ListImmediateNeighbours ($nodeId, $bitmaskSearchMode) |
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 строка 146
|
staticprotected |
См. определение в файле ilearngraphrelation.php строка 171
|
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' |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 370
|
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 |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 234
|
static |
Lists immediate childs
integer | id of node |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 161
|
static |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 166
|
static |
Lists immediate parents
integer | id of node |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 156
|
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 |
This code will be useful after bug in CDatabase::Update() will be solved and $ignore_errors setted to true in Update() call above.
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 311
|
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' |
Замещает ILearnGraphRelation.
См. определение в файле ilearngraphrelation.php строка 281
const NBRS_IMDT_CHILDS = 0x2 |
См. определение в файле ilearngraphrelation.php строка 150
const NBRS_IMDT_PARENTS = 0x1 |
См. определение в файле ilearngraphrelation.php строка 149