Documentation

XmlWriter constructor

 public
\Bitrix\Main\XmlWriter::__construct(
 array $params
);

Method - constructor. Non-static method is called when creating class instance, allowing to perform specific actions within it when creating an object.

Parameters

ParameterDescriptionVersion
$paramsArray with settings parameters.
  • create_file - when true, creates the file. Sometimes, file creating is not required, if it is already available and writes into such existing file. See more details in the example.
  • charset - created file encoding, in site encoding by default.
  • lowercase - when true, converts to lower case
  • tab - number of tabs, to start file writing. Used in case of file's finishing writing. See more details in the example.

Example



© «Bitrix24», 2001-2024
Up