Bitrix API

CIBlockXMLFile

Table of Contents

Constants

UNPACK_STATUS_CONTINUE  = 1
UNPACK_STATUS_ERROR  = -1
UNPACK_STATUS_FINAL  = 2

Properties

$_sessid  : mixed
$_table_name  : mixed
$buf  : mixed
$buf_len  : mixed
$buf_position  : mixed
$charset  : mixed
$element_stack  : mixed
$file_position  : mixed
$read_size  : mixed

Methods

__construct()  : mixed
_end_element()  : mixed
_get_xml_chunk()  : bool|string
Internal function.
_get_xml_chunk_mb()  : bool|string
Internal function.
_get_xml_chunk_mb_orig()  : bool|string
Internal function.
_start_element()  : mixed
Add()  : mixed
CreateTemporaryTables()  : mixed
Delete()  : mixed
DropTemporaryTables()  : mixed
EndSession()  : mixed
GetAllChildrenArray()  : mixed
GetCountItemsWithParent()  : mixed
GetFilePosition()  : mixed
GetList()  : mixed
GetRoot()  : mixed
GetSessionRoot()  : mixed
IndexTemporaryTables()  : mixed
initializeTemporaryTables()  : bool
IsExistTemporaryTable()  : mixed
isTableStructureCorrect()  : bool
ReadXMLToDatabase()  : mixed
safeUnZip()  : array<string|int, mixed>
StartSession()  : mixed
truncateTemporaryTables()  : bool
UnZip()  : bool|string

Constants

UNPACK_STATUS_CONTINUE

public mixed UNPACK_STATUS_CONTINUE = 1

UNPACK_STATUS_ERROR

public mixed UNPACK_STATUS_ERROR = -1

UNPACK_STATUS_FINAL

public mixed UNPACK_STATUS_FINAL = 2

Properties

$_sessid

public mixed $_sessid = ""

$_table_name

public mixed $_table_name = ""

$buf

public mixed $buf = ""

$buf_len

public mixed $buf_len = 0

$buf_position

public mixed $buf_position = 0

$charset

public mixed $charset = \false

$element_stack

public mixed $element_stack = []

$file_position

public mixed $file_position = 0

$read_size

public mixed $read_size = 10240

Methods

__construct()

public __construct([mixed $table_name = "b_xml_tree" ]) : mixed
Parameters
$table_name : mixed = "b_xml_tree"

_end_element()

public _end_element(mixed $xmlChunk) : mixed
Parameters
$xmlChunk : mixed

_get_xml_chunk()

Internal function.

public _get_xml_chunk(resource $fp) : bool|string

Used to read an xml by chunks started with "<" and endex with "<"

Parameters
$fp : resource
Return values
bool|string

_get_xml_chunk_mb()

Internal function.

public _get_xml_chunk_mb(resource $fp) : bool|string

deprecated since iblock 20.100.0

Used to read an xml by chunks started with "<" and endex with "<"

Parameters
$fp : resource
Return values
bool|string

_get_xml_chunk_mb_orig()

Internal function.

public _get_xml_chunk_mb_orig(resource $fp) : bool|string

deprecated since iblock 20.100.0

Used to read an xml by chunks started with "<" and endex with "<"

Parameters
$fp : resource
Return values
bool|string

_start_element()

public _start_element(mixed $xmlChunk) : mixed
Parameters
$xmlChunk : mixed

Add()

public Add(mixed $arFields) : mixed
Parameters
$arFields : mixed

CreateTemporaryTables()

public CreateTemporaryTables([mixed $with_sess_id = false ]) : mixed
Parameters
$with_sess_id : mixed = false

Delete()

public Delete(mixed $ID) : mixed
Parameters
$ID : mixed

DropTemporaryTables()

public DropTemporaryTables() : mixed

EndSession()

public EndSession() : mixed

GetAllChildrenArray()

public GetAllChildrenArray(mixed $arParent[, mixed $handleAttributes = false ]) : mixed
Parameters
$arParent : mixed
$handleAttributes : mixed = false

GetCountItemsWithParent()

public GetCountItemsWithParent(mixed $parentID) : mixed
Parameters
$parentID : mixed

GetFilePosition()

public GetFilePosition() : mixed

GetList()

public GetList([mixed $arOrder = array() ][, mixed $arFilter = array() ][, mixed $arSelect = array() ][, mixed $handleAttributes = false ]) : mixed
Parameters
$arOrder : mixed = array()
$arFilter : mixed = array()
$arSelect : mixed = array()
$handleAttributes : mixed = false

GetRoot()

public GetRoot() : mixed

GetSessionRoot()

public GetSessionRoot() : mixed

IndexTemporaryTables()

public IndexTemporaryTables([mixed $with_sess_id = false ]) : mixed
Parameters
$with_sess_id : mixed = false

initializeTemporaryTables()

public initializeTemporaryTables() : bool
Return values
bool

IsExistTemporaryTable()

public IsExistTemporaryTable() : mixed

isTableStructureCorrect()

public isTableStructureCorrect([mixed $withSessId = false ]) : bool
Parameters
$withSessId : mixed = false
Return values
bool

ReadXMLToDatabase()

public ReadXMLToDatabase(mixed $fp, mixed &$NS[, mixed $time_limit = 0 ][, mixed $read_size = 1024 ]) : mixed
Parameters
$fp : mixed
$NS : mixed
$time_limit : mixed = 0
$read_size : mixed = 1024

safeUnZip()

public static safeUnZip(string $fileName[, int|null $lastIndex = null ][, int $interval = 0 ]) : array<string|int, mixed>
Parameters
$fileName : string
$lastIndex : int|null = null
$interval : int = 0
Return values
array<string|int, mixed>

StartSession()

public StartSession(mixed $sess_id) : mixed
Parameters
$sess_id : mixed

truncateTemporaryTables()

public truncateTemporaryTables() : bool
Return values
bool

UnZip()

public static UnZip(mixed $file_name[, mixed $last_zip_entry = "" ][, mixed $start_time = 0 ][, mixed $interval = 0 ]) : bool|string

deprecated since 23.100.0 - unsecure

Parameters
$file_name : mixed
$last_zip_entry : mixed = ""
$start_time : mixed = 0
$interval : mixed = 0
Tags
see
CIBlockXMLFile::safeUnZip
Return values
bool|string

        
On this page

Search results