PHP Класс LazyRecord\Exporter\XMLExporter

That would cause memory usage issue (too many model objects) We should also consider the object construction in the import process, we should share the same record class in the same collection section. Here is the specification: ....
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dom
$root

Открытые методы

Метод Описание
__construct ( )
exportCollection ( BaseCollection $collection ) : DOMDocument
exportRecord ( BaseModel $record ) : DOMDocument

Защищенные методы

Метод Описание
appendRecord ( DOMDocument $dom, DOMElement $root, BaseModel $record, LazyRecord\Schema\SchemaInterface $schema = null, $recursive = true )
appendRecordInplace ( DOMDocument $dom, DOMElement $root, BaseModel $record, LazyRecord\Schema\SchemaInterface $schema = null, $recursive = true )

Описание методов

__construct() публичный метод

public __construct ( )

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

appendRecordInplace() защищенный метод

protected appendRecordInplace ( DOMDocument $dom, DOMElement $root, BaseModel $record, LazyRecord\Schema\SchemaInterface $schema = null, $recursive = true )
$dom DOMDocument
$root DOMElement
$record LazyRecord\BaseModel
$schema LazyRecord\Schema\SchemaInterface

exportCollection() публичный метод

public exportCollection ( BaseCollection $collection ) : DOMDocument
$collection LazyRecord\BaseCollection
Результат DOMDocument

exportRecord() публичный метод

public exportRecord ( BaseModel $record ) : DOMDocument
$record LazyRecord\BaseModel
Результат DOMDocument

Описание свойств

$dom защищенное свойство

protected $dom

$root защищенное свойство

protected $root