1C-Bitrix 25.700.0
|
Открытые члены | |
CheckFields ($arFields, $ID=false) | |
Add ($arFields) | |
Update ($ID, $arFields) | |
getLastError () |
Открытые статические члены | |
static | GetList ($arOrder=array("SORT"=> "ASC"), $arFilter=array()) |
static | GetByID ($ID) |
static | GetByIDLang ($ID, $LID, $bFindAny=true) |
static | Delete ($ID) |
Поля данных | |
string | $LAST_ERROR = '' |
Защищенные статические члены | |
static | _GetCache ($ID) |
static | SetLang ($ID, $arLang) |
Class CIBlockType
См. определение в файле iblocktype.php строка 19
|
staticprotected |
Returns cached version of the iblock type information.
string | $ID |
@global CDatabase $DB
@global CCacheManager $CACHE_MANAGER
См. определение в файле iblocktype.php строка 164
Add | ( | $arFields | ) |
Creates new iblock type in the database. For arFields see CIBlockType
class description.
In addition it may contain key "LANG" with and array of language depended on parameters.
For example:
$arFields = array(
"ID" => "test",
"LANG" => array(
"en" => array(
"NAME" => "Test",
"ELEMENT_NAME" => "Test element",
"SECTION_NAME" => "Test section",
),
),
);
array | $arFields |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 429
CheckFields | ( | $arFields, | |
$ID = false ) |
Helper internal function.
Checks correctness of the information. Called by Add and Update methods. List of errors returned by LAST_ERROR member variable.
array | $arFields | |
bool | $ID | iblock type ID. false - if new one. |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 363
|
static |
Deletes iblock type including all iblocks.
When there is an error occured on iblock deletion it stops and returns false.
string | $ID | iblock type ID. |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 329
|
static |
Returns iblock type information by ID.
if (CModule::IncludeModule('iblock'))
{
$rsType = CIBlockType\GetByID('test');
$arType = $rsType->GetNext();
if ($arType)
{
echo '<pre>', htmlspecialcharsEx(print_r($arType, true)), '</pre>';
}
}
string | $ID | iblock type ID |
См. определение в файле iblocktype.php строка 220
|
static |
Returns iblock type information with additional language depended on messages.
Additional to CIBlockType
language depended on fields:
if (CModule::IncludeModule('iblock'))
{
$rsTypeLang = CIBlockType\GetByIDLang('test', 'en');
$arTypeLang = $rsTypeLang->GetNext();
if ($arTypeLang)
{
echo '<pre>', htmlspecialcharsEx(print_r($arTypeLang, true)), '</pre>';
}
}
string | $ID | iblock type ID |
string | $LID | language ID |
bool | $bFindAny | Forces strict search |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 274
getLastError | ( | ) |
@global CDatabase $DB
@global CCacheManager $CACHE_MANAGER
См. определение в файле iblocktype.php строка 53
|
staticprotected |
Internal helper function which helps to store language depended on fields into database.
string | $ID | iblock type ID |
array | $arLang | language depended fields |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 495
Update | ( | $ID, | |
$arFields ) |
Updates iblock type in the database.
$arFields is the same as for CIBlockType::Add
method.
string | $ID | |
array | $arFields |
@global CDatabase $DB
См. определение в файле iblocktype.php строка 464
string $LAST_ERROR = '' |
См. определение в файле iblocktype.php строка 24