PHP Class Bravo3\Orm\Mappers\Yaml\YamlMapWriter

Inheritance: extends Bravo3\Orm\Mappers\Portation\AbstractMapWriter
Afficher le fichier Open project: bravo3/orm

Protected Properties

Свойство Type Description
$indent_spaces integer
$inline_level integer
$main_buffer array
$output_fn string
$sub_buffers array

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
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

Method Details

__construct() public méthode

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

compileMetadataForEntity() public méthode

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
Résultat void

flush() public méthode

Compile and write all processed metadata
public flush ( ) : void
Résultat void

getIndentSpaces() public méthode

Get the number of spaces for YAML indenting
public getIndentSpaces ( ) : integer
Résultat integer

getInlineLevel() public méthode

Get the YAML indent level in which formatting is switched to inline
public getInlineLevel ( ) : integer
Résultat integer

purge() public méthode

Purge the current buffer of unwritten content
public purge ( ) : void
Résultat void

setIndentSpaces() public méthode

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

setInlineLevel() public méthode

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

Property Details

$indent_spaces protected_oe property

protected int $indent_spaces
Résultat integer

$inline_level protected_oe property

protected int $inline_level
Résultat integer

$main_buffer protected_oe property

protected array $main_buffer
Résultat array

$output_fn protected_oe property

protected string $output_fn
Résultat string

$sub_buffers protected_oe property

protected array $sub_buffers
Résultat array