PHP Класс Bravo3\Orm\Mappers\Yaml\YamlMapWriter

Наследование: extends Bravo3\Orm\Mappers\Portation\AbstractMapWriter
Показать файл Открыть проект

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

Свойство Тип Описание
$indent_spaces integer
$inline_level integer
$main_buffer array
$output_fn string
$sub_buffers array

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

Метод Описание
__construct ( string $output = null )
compileMetadataForEntity ( object $entity, string | null $resource = null ) : void Write metadata for a given entity, using the input EntityManager that must be preset
flush ( ) : void Compile and write all processed metadata
getIndentSpaces ( ) : integer Get the number of spaces for YAML indenting
getInlineLevel ( ) : integer Get the YAML indent level in which formatting is switched to inline
purge ( ) : void Purge the current buffer of unwritten content
setIndentSpaces ( integer $indent_spaces ) Set the number of spaces for YAML indenting
setInlineLevel ( integer $inline_level ) Set the YAML indent level in which formatting is switched to inline

Приватные методы

Метод Описание
compileColumns ( Entity $md ) : array Compiles all columns for an entity
compileConditions ( array $conditions ) : array Compile conditions into an array
compileSortIndices ( Entity $md ) : array Compile all sortable table indices
compileSortables ( array $sortables ) : array Compile sortables into an array
compileStdIndices ( Entity $md ) : array Compile normal indices
writeYaml ( string $fn, array $data ) Write YAML data to a file, overwriting its contents

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

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

public __construct ( string $output = null )
$output string Primary output file

compileMetadataForEntity() публичный Метод

Write metadata for a given entity, using the input EntityManager that must be preset
public compileMetadataForEntity ( object $entity, string | null $resource = null ) : void
$entity object Entity with existing mapping data
$resource string | null File name to write data, if null a default or common value will be used
Результат void

flush() публичный Метод

Compile and write all processed metadata
public flush ( ) : void
Результат void

getIndentSpaces() публичный Метод

Get the number of spaces for YAML indenting
public getIndentSpaces ( ) : integer
Результат integer

getInlineLevel() публичный Метод

Get the YAML indent level in which formatting is switched to inline
public getInlineLevel ( ) : integer
Результат integer

purge() публичный Метод

Purge the current buffer of unwritten content
public purge ( ) : void
Результат void

setIndentSpaces() публичный Метод

Set the number of spaces for YAML indenting
public setIndentSpaces ( integer $indent_spaces )
$indent_spaces integer

setInlineLevel() публичный Метод

Set the YAML indent level in which formatting is switched to inline
public setInlineLevel ( integer $inline_level )
$inline_level integer

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

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

protected int $indent_spaces
Результат integer

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

protected int $inline_level
Результат integer

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

protected array $main_buffer
Результат array

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

protected string $output_fn
Результат string

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

protected array $sub_buffers
Результат array