Overview

Namespaces

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

Classes

  • AbstractEntity
  • AbstractField
  • AbstractProperty
  • Asset
  • Category
  • CategoryField
  • CategoryPosts
  • Channel
  • Comment
  • Entry
  • Field
  • Fieldtype
  • File
  • GridCol
  • GridRow
  • JoinableScope
  • MatrixCol
  • MatrixRow
  • Member
  • MemberField
  • PlayaEntry
  • RelationshipEntry
  • Site
  • Title
  • UploadPref

Interfaces

  • FileInterface

Traits

  • GlobalAttributeVisibilityTrait
  • JoinableTrait
  • Overview
  • Namespace
  • Class
  • Tree

Class Channel

Model for the channels table

Illuminate\Database\Eloquent\Model
Extended by rsanchez\Deep\Model\Channel
Namespace: rsanchez\Deep\Model
Located at Model/Channel.php
Methods summary
public static
# setFieldRepository( rsanchez\Deep\Repository\FieldRepository $fieldRepository )

Set the global FieldRepository

Set the global FieldRepository

Parameters

$fieldRepository
rsanchez\Deep\Repository\FieldRepository
$fieldRepository
public rsanchez\Deep\Collection\ChannelCollection
# newCollection( array $models = array() )

Parameters

$models
array
$models

Returns

rsanchez\Deep\Collection\ChannelCollection
public rsanchez\Deep\Relations\HasManyFromRepository
# fields( )

Define the Fields Eloquent relationship

Define the Fields Eloquent relationship

Returns

rsanchez\Deep\Relations\HasManyFromRepository
public rsanchez\Deep\Collection\FieldCollection
# fieldsByType( string $type )

Get channel fields of the specified type

Get channel fields of the specified type

Parameters

$type
string
$type name of a fieldtype

Returns

rsanchez\Deep\Collection\FieldCollection
public array
# getCatGroupAttribute( string $data )

Get the cat_group attribute as an array

Get the cat_group attribute as an array

Parameters

$data
string
$data pipe-delimited list

Returns

array
of category group IDs
public
# __toString( )

Return the channel_name when cast to string

Return the channel_name when cast to string

Var

string
Properties summary
protected string $table 'channels'
#
protected string $primaryKey 'channel_id'
#
protected array $hidden array('fields')
#
public static rsanchez\Deep\Repository\FieldRepository $fieldRepository
#

Global Field Repository

Global Field Repository

API documentation generated by ApiGen 2.8.0