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 GridHydrator

Hydrator for the Grid fieldtype

rsanchez\Deep\Hydrator\AbstractHydrator implements rsanchez\Deep\Hydrator\HydratorInterface
Extended by rsanchez\Deep\Hydrator\GridHydrator
Namespace: rsanchez\Deep\Hydrator
Located at Hydrator/GridHydrator.php
Methods summary
public
# __construct( rsanchez\Deep\Collection\EntryCollection $collection, string $fieldtype, rsanchez\Deep\Model\GridCol $colModel, rsanchez\Deep\Model\GridRow $rowModel )

Constructor

Constructor

Parameters

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

Overrides

rsanchez\Deep\Hydrator\AbstractHydrator::__construct()
public
# preload( array $entryIds )

Preload any custom field data that resides in another DB table

Preload any custom field data that resides in another DB table

Parameters

$entryIds
array
$entryIds all the entry IDs in the collection (including related entries)

Overrides

rsanchez\Deep\Hydrator\AbstractHydrator::preload()
public mixed
# hydrate( rsanchez\Deep\Model\AbstractEntity $entity, rsanchez\Deep\Model\AbstractProperty $property )

Hydrate the specified property (channel field or Matrix/Grid col) on the specified entity (channel entry or Matrix/Grid row)

Hydrate the specified property (channel field or Matrix/Grid col) on the specified entity (channel entry or Matrix/Grid row)

Parameters

$entity
rsanchez\Deep\Model\AbstractEntity
$entity
$property
rsanchez\Deep\Model\AbstractProperty
$property

Returns

mixed
the entity property value
Properties summary
protected rsanchez\Deep\Model\GridCol $colModel
#
protected rsanchez\Deep\Model\GridRow $rowModel
#
protected rsanchez\Deep\Collection\GridColCollection $cols
#

All Grid cols used by this collection

All Grid cols used by this collection

protected array $rows array()
#

Array of field_id => \rsanchez\Deep\Collection\GridRowCollection

Array of field_id => \rsanchez\Deep\Collection\GridRowCollection

Properties inherited from rsanchez\Deep\Hydrator\AbstractHydrator
$collection, $fieldtype
API documentation generated by ApiGen 2.8.0