LazyRecord\Exporter\XMLExporter::appendRecord PHP Метод

appendRecord() защищенный Метод

protected appendRecord ( DOMDocument $dom, DOMElement $root, BaseModel $record, LazyRecord\Schema\SchemaInterface $schema = null, $recursive = true )
$dom DOMDocument
$root DOMElement
$record LazyRecord\BaseModel
$schema LazyRecord\Schema\SchemaInterface
    protected function appendRecord(DOMDocument $dom, DOMElement $root, BaseModel $record, SchemaInterface $schema = null, $recursive = true)
    {
        if (!$schema) {
            $schema = $record->getSchema();
        }
        $recordElement = $dom->createElement('record');
        $recordElement->setAttribute('class', get_class($record));
        $root->appendChild($recordElement);
        $this->appendRecordInplace($dom, $recordElement, $record, $schema, $recursive);
    }