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

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

static Remove ($id)
static GetByID ($id)
static Create ($arInFields)
static Update ($id, $arInFields)

Поля данных

const SQL_NONE = 0
const SQL_SELECT = 1
const SQL_INSERT = 2
const SQL_UPDATE = 4

Защищенные статические члены

static _InsertOrUpdate ($arInFields, $mode, $id=false)
static _PrepareDataForQuery ($arFieldsMap, $arFields, $lessonId)
static _UploadFile ($fieldNameInDB, $arData)
static _CheckAndCanonizeFields ($arFieldsMap, $arFields, $access_level, $forUpdate=false)
static _GetFieldsMap ()
static _GetReversedFieldsMap ()

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

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

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

Методы

◆ _CheckAndCanonizeFields()

_CheckAndCanonizeFields ( $arFieldsMap,
$arFields,
$access_level,
$forUpdate = false )
staticprotected
Исключения
LearnExceptionwith errcode LearnException\EXC_ERR_GN_CHECK_PARAMS

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

◆ _GetFieldsMap()

_GetFieldsMap ( )
staticprotected

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

◆ _GetReversedFieldsMap()

_GetReversedFieldsMap ( )
staticprotected

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

◆ _InsertOrUpdate()

_InsertOrUpdate ( $arInFields,
$mode,
$id = false )
staticprotected

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

◆ _PrepareDataForQuery()

_PrepareDataForQuery ( $arFieldsMap,
$arFields,
$lessonId )
staticprotected

Prepares array of fields with values for query to DB. Also, uploads/removes files, if there are.

Исключения
LearnExceptionon error. Errcodes are: LearnException\EXC_ERR_GN_CHECK_PARAMS, LearnException\EXC_ERR_GN_FILE_UPLOAD

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

◆ _UploadFile()

_UploadFile ( $fieldNameInDB,
$arData )
staticprotected
Возвращает
integer id of file in table b_file

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

◆ Create()

Create ( $arFields)
static

WARNING: this method terminates (by die()/exit()) current execution flow when SQL server error occured. It's due to bug in CDatabase::Insert() 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 )

Аргументы
arrayof pairs field => value for new GraphNode. Allowed fields are: ACTIVE, true by default, available values are: true/false NAME, mustn't be omitted CODE, NULL by default PREVIEW_PICTURE, NULL by default, available value is array ('name' => ..., 'size' => ..., 'tmp_name' => ..., 'type' => ..., 'del' => ...) PREVIEW_TEXT, NULL by default PREVIEW_TEXT_TYPE, 'text' by default, available values are: 'text', 'html' DETAIL_PICTURE, NULL by default, available value is array ('name' => ..., 'size' => ..., 'tmp_name' => ..., 'type' => ..., 'del' => ...) DETAIL_TEXT, NULL by default DETAIL_TEXT_TYPE, 'text' by default, available values are: 'text', 'html', 'file' (filename in LAUNCH) LAUNCH, NULL by default
Исключения
LearnExceptionwith errcodes:
Возвращает
integer id of created graph node

Замещает ILearnGraphNode.

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

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

◆ GetByID()

GetByID ( $id)
static
Аргументы
integerid of node to be getted
Исключения
LearnExceptionwith errcode LearnException\EXC_ERR_GN_GETBYID. Messages can be: 'EA_PARAMS', 'EA_ACCESS_DENIED', 'EA_SQLERROR', 'EA_NOT_EXISTS'.
Возвращает
array of properties for node with $id

Замещает ILearnGraphNode.

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

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

◆ Remove()

Remove ( $id)
static
Аргументы
integerid of node to be removed
Исключения
LearnExceptionwith errcode LearnException\EXC_ERR_GN_REMOVE, also errmsg === 'EA_NOT_EXISTS' if there is wasn't node with this id.

Замещает ILearnGraphNode.

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

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

◆ Update()

Update ( $id,
$arFields )
static

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 )

Аргументы
integerid of node to be updated
arrayof pairs field => value for new GraphNode
Исключения
LearnExceptionwith errcodes:

Замещает ILearnGraphNode.

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

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

Поля

◆ SQL_INSERT

const SQL_INSERT = 2

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

◆ SQL_NONE

const SQL_NONE = 0

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

◆ SQL_SELECT

const SQL_SELECT = 1

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

◆ SQL_UPDATE

const SQL_UPDATE = 4

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


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