Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
NormalizersManager Class Reference

Normalize objects and arrays of objects. More...

Static Public Member Functions

static start ()
 
static registerClass ($classname, $normalizer, $constructorParameters=[])
 
static registerClasses ($classesAndNormalizers,... $constructorParameters)
 
static getNormalizer ($classname)
 
static normalizeArray (array $datas, NormalizerInterface $normalizer)
 
static normalizeArray_ (array $datas)
 
static normalize ($object, NormalizerInterface $normalizer)
 
static normalize_ ($object)
 
static store ()
 

Static Private Attributes

static $normalizers = [ ]
 
static $key = "contents/normalizers"
 

Detailed Description

Normalize objects and arrays of objects.

Ubiquity\contents\normalizers$NormalizersManager This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.1

Definition at line 19 of file NormalizersManager.php.

Member Function Documentation

◆ getNormalizer()

static getNormalizer (   $classname)
static

Definition at line 44 of file NormalizersManager.php.

◆ normalize()

static normalize (   $object,
NormalizerInterface  $normalizer 
)
static

Definition at line 71 of file NormalizersManager.php.

◆ normalize_()

static normalize_ (   $object)
static

Definition at line 78 of file NormalizersManager.php.

◆ normalizeArray()

static normalizeArray ( array  $datas,
NormalizerInterface  $normalizer 
)
static

Definition at line 51 of file NormalizersManager.php.

◆ normalizeArray_()

static normalizeArray_ ( array  $datas)
static

Definition at line 61 of file NormalizersManager.php.

◆ registerClass()

static registerClass (   $classname,
  $normalizer,
  $constructorParameters = [ ] 
)
static

Definition at line 33 of file NormalizersManager.php.

◆ registerClasses()

static registerClasses (   $classesAndNormalizers,
  $constructorParameters 
)
static

Definition at line 38 of file NormalizersManager.php.

◆ start()

static start ( )
static

Definition at line 27 of file NormalizersManager.php.

◆ store()

static store ( )
static

Definition at line 85 of file NormalizersManager.php.

Field Documentation

◆ $key

$key = "contents/normalizers"
staticprivate

Definition at line 25 of file NormalizersManager.php.

◆ $normalizers

$normalizers = [ ]
staticprivate

Definition at line 24 of file NormalizersManager.php.


The documentation for this class was generated from the following file: