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)
Открытые методы
Защищенные методы
Метод |
Описание |
|
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()
публичный метод
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 |
|
Описание свойств
$root защищенное свойство