Overview

Namespaces

  • rsanchez
    • Deep
      • App
        • EE
        • Laravel
          • Facade
      • Collection
      • Hydrator
      • Model
      • Plugin
      • Relations
      • Repository

Classes

  • AbstractHydrator
  • AssetsHydrator
  • DateHydrator
  • ExplodeHydrator
  • FileHydrator
  • GridHydrator
  • HydratorFactory
  • MatrixHydrator
  • ParentsHydrator
  • PipeHydrator
  • PlayaHydrator
  • RelationshipHydrator
  • SiblingsHydrator
  • WysiwygHydrator

Interfaces

  • HydratorInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class HydratorFactory

Factory for building new Hydrators

Namespace: rsanchez\Deep\Hydrator
Located at Hydrator/HydratorFactory.php
Methods summary
public
# __construct( rsanchez\Deep\Repository\SiteRepository $siteRepository, rsanchez\Deep\Repository\UploadPrefRepositoryInterface $uploadPrefRepository, rsanchez\Deep\Model\Asset $asset, rsanchez\Deep\Model\File $file, rsanchez\Deep\Model\GridCol $gridCol, rsanchez\Deep\Model\GridRow $gridRow, rsanchez\Deep\Model\MatrixCol $matrixCol, rsanchez\Deep\Model\MatrixRow $matrixRow, rsanchez\Deep\Model\PlayaEntry $playaEntry, rsanchez\Deep\Model\RelationshipEntry $relationshipEntry )

Constructor

Constructor

Var

\rsanchez\Deep\Repository\SiteRepository $siteRepository
\rsanchez\Deep\Repository\UploadPrefRepositoryInterface $uploadPrefRepository
public array
# getHydrators( rsanchez\Deep\Collection\AbstractTitleCollection $collection, array $extraHydrators = array() )

Get an array of Hydrators needed by the specified collection
'field_name' => AbstractHydrator

Get an array of Hydrators needed by the specified collection 'field_name' => AbstractHydrator

Parameters

$collection
rsanchez\Deep\Collection\AbstractTitleCollection
$collection
$extraHydrators

Returns

array
AbstractHydrator[]
public rsanchez\Deep\Hydrator\AbstractHydrator
# newHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new Hydrator object

Create a new Hydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\AbstractHydrator
public rsanchez\Deep\Hydrator\AssetsHydrator
# newAssetsHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new AssetsHydrator object

Create a new AssetsHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\AssetsHydrator
public rsanchez\Deep\Hydrator\FileHydrator
# newFileHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new FileHydrator object

Create a new FileHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\FileHydrator
public rsanchez\Deep\Hydrator\GridHydrator
# newGridHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new GridHydrator object

Create a new GridHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\GridHydrator
public rsanchez\Deep\Hydrator\MatrixHydrator
# newMatrixHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new MatrixHydrator object

Create a new MatrixHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\MatrixHydrator
public rsanchez\Deep\Hydrator\PlayaHydrator
# newPlayaHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new PlayaHydrator object

Create a new PlayaHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\PlayaHydrator
public rsanchez\Deep\Hydrator\RelationshipHydrator
# newRelationshipHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new RelationshipHydrator object

Create a new RelationshipHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\RelationshipHydrator
public rsanchez\Deep\Hydrator\ParentsHydrator
# newParentsHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new ParentsHydrator object

Create a new ParentsHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\ParentsHydrator
public rsanchez\Deep\Hydrator\SiblingsHydrator
# newSiblingsHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new SIblingsHydrator object

Create a new SIblingsHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\SiblingsHydrator
public rsanchez\Deep\Hydrator\WysiwygHydrator
# newWysiwygHydrator( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype )

Create a new WysiwygHydrator object

Create a new WysiwygHydrator object

Parameters

$collection
rsanchez\Deep\Collection\EntryCollection
$collection
$fieldtype
string
$fieldtype

Returns

rsanchez\Deep\Hydrator\WysiwygHydrator
Properties summary
protected array $hydrators array( 'matrix' => '\\rsanchez\\Deep\\Hydrator\\MatrixHydrator', 'grid' => '\\rsanchez\\Deep\\Hydrator\\GridHydrator', 'playa' => '\\rsanchez\\Deep\\Hydrator\\PlayaHydrator', 'relationship' => '\\rsanchez\\Deep\\Hydrator\\RelationshipHydrator', 'assets' => '\\rsanchez\\Deep\\Hydrator\\AssetsHydrator', 'file' => '\\rsanchez\\Deep\\Hydrator\\FileHydrator', 'date' => '\\rsanchez\\Deep\\Hydrator\\DateHydrator', 'multi_select' => '\\rsanchez\\Deep\\Hydrator\\PipeHydrator', 'checkboxes' => '\\rsanchez\\Deep\\Hydrator\\PipeHydrator', 'fieldpack_checkboxes' => '\\rsanchez\\Deep\\Hydrator\\ExplodeHydrator', 'fieldpack_multiselect' => '\\rsanchez\\Deep\\Hydrator\\ExplodeHydrator', 'fieldpack_list' => '\\rsanchez\\Deep\\Hydrator\\ExplodeHydrator', 'wygwam' => '\\rsanchez\\Deep\\Hydrator\\WysiwygHydrator', 'parents' => '\\rsanchez\\Deep\\Hydrator\\ParentsHydrator', 'siblings' => '\\rsanchez\\Deep\\Hydrator\\SiblingsHydrator', )
#

Array of fieldtype => hydrator class name

Array of fieldtype => hydrator class name

protected rsanchez\Deep\Repository\SiteRepository $siteRepository
#

Site model repository

Site model repository

protected rsanchez\Deep\Repository\UploadPrefRepository $uploadPrefRepository
#

UploadPref model repository

UploadPref model repository

API documentation generated by ApiGen 2.8.0