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 Asset

Model for the assets_files table, joined with assets_selections

Illuminate\Database\Eloquent\Model
Extended by rsanchez\Deep\Model\Asset implements rsanchez\Deep\Model\FileInterface uses rsanchez\Deep\Model\JoinableTrait
Namespace: rsanchez\Deep\Model
Located at Model/Asset.php
Methods summary
public
# setUploadPref( rsanchez\Deep\Model\UploadPref $uploadPref = null )

Set the UploadPref

Set the UploadPref

Var

\rsanchez\Deep\Model\UploadPref $uploadPref|null
public rsanchez\Deep\Collection\AssetCollection
# newCollection( array $assets = array() )

Parameters

$assets
array
$assets

Returns

rsanchez\Deep\Collection\AssetCollection
public string
# getUrlAttribute( )

Get the public url to this file

Get the public url to this file

Returns

string

Implementation of

rsanchez\Deep\Model\FileInterface::getUrlAttribute()
public string
# getServerPathAttribute( )

Get the server path to this file

Get the server path to this file

Returns

string

Implementation of

rsanchez\Deep\Model\FileInterface::getServerPathAttribute()
public Carbon\Carbon
# getDateAttribute( integer $value )

Get the date column as a Carbon object

Get the date column as a Carbon object

Parameters

$value
integer
$value unix time

Returns

Carbon\Carbon
public Carbon\Carbon
# getDateModifiedAttribute( integer $value )

Get the date_modified column as a Carbon object

Get the date_modified column as a Carbon object

Parameters

$value
integer
$value unix time

Returns

Carbon\Carbon
public Illuminate\Database\Eloquent\Builder
# scopeEntryId( Illuminate\Database\Eloquent\Builder $query, string|array $entryId )

Filter by Entry ID

Filter by Entry ID

Parameters

$query
Illuminate\Database\Eloquent\Builder
$query
$entryId
string|array
$entryId

Returns

Illuminate\Database\Eloquent\Builder
public array
# getSourceSettingsAttribute( string $value )

Get the json decoded settings for the source

Get the json decoded settings for the source

Parameters

$value
string
$value json settings

Returns

array
public
# attributesToArray( )
public string
# __toString( )

Get the public url to this file

Get the public url to this file

Returns

string

Implementation of

rsanchez\Deep\Model\FileInterface::__toString()
public static
# defaultJoinTables( )
protected static
# joinTables( )
Methods used from rsanchez\Deep\Model\JoinableTrait
(), (), ()
Properties summary
protected string $table 'assets_files'
#
protected string $primaryKey 'file_id'
#
protected array $hidden array('file_id', 'folder_id', 'source_type', 'source_id', 'filedir_id', 'entry_id', 'field_id', 'col_id', 'row_id', 'var_id', 'element_id', 'content_type', 'sort_order', 'is_draft', 'uploadPref', 'source_type', 'folder_name', 'full_path', 'parent_id', 'name', 'settings', )
#
protected array $appends array('url')
#
protected rsanchez\Deep\Model\UploadPref $uploadPref
#

UploadPref model

UploadPref model

API documentation generated by ApiGen 2.8.0