Overview

Namespaces

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

Classes

  • AbstractDeferredRepository
  • AbstractFieldRepository
  • CategoryFieldRepository
  • ChannelRepository
  • ConfigUploadPrefRepository
  • FieldRepository
  • MemberFieldRepository
  • SiteRepository
  • UploadPrefRepository

Interfaces

  • RepositoryInterface
  • UploadPrefRepositoryInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class FieldRepository

Repository of all Fields

rsanchez\Deep\Repository\AbstractDeferredRepository implements rsanchez\Deep\Repository\RepositoryInterface
Extended by rsanchez\Deep\Repository\AbstractFieldRepository
Extended by rsanchez\Deep\Repository\FieldRepository
Namespace: rsanchez\Deep\Repository
Located at Repository/FieldRepository.php
Methods summary
public
# __construct( rsanchez\Deep\Model\Field $model )

Constructor

Constructor

Parameters

$model
rsanchez\Deep\Model\AbstractField
$model

Overrides

rsanchez\Deep\Repository\AbstractFieldRepository::__construct()
protected
# boot( )

Defer loading of Collection until needed

Defer loading of Collection until needed

Overrides

rsanchez\Deep\Repository\AbstractFieldRepository::boot()
public rsanchez\Deep\Collection\FieldCollection
# getFieldsByGroup( integer $groupId )

Get a Collection of fields from the specified group

Get a Collection of fields from the specified group

Parameters

$groupId
integer
$groupId

Returns

rsanchez\Deep\Collection\FieldCollection
public rsanchez\Deep\Collection\FieldCollection
# getFieldsByChannelCollection( rsanchez\Deep\Collection\ChannelCollection $channels )

Get the fields used by the channels in the specified collection

Get the fields used by the channels in the specified collection

Parameters

$channels
rsanchez\Deep\Collection\ChannelCollection
$channels

Returns

rsanchez\Deep\Collection\FieldCollection
Methods inherited from rsanchez\Deep\Repository\AbstractFieldRepository
find(), getFieldId(), getFieldName(), getFields(), hasField(), hasFieldId()
Methods inherited from rsanchez\Deep\Repository\AbstractDeferredRepository
getModel()
Properties summary
protected array $fieldsByGroup array()
#

Array of FieldCollection keyed by group_id

Array of FieldCollection keyed by group_id

Properties inherited from rsanchez\Deep\Repository\AbstractFieldRepository
$fieldsById, $fieldsByName
Properties inherited from rsanchez\Deep\Repository\AbstractDeferredRepository
$collection, $model
API documentation generated by ApiGen 2.8.0