class Media extends BaseModel

Media Wrapper

Properties

protected $model from BaseModel
protected $stack from BaseModel

Methods

__construct($model)

No description

from BaseModel
toCompat()

No description

from BaseModel
object
getCompatSource()

Return source model

from BaseModel
integer
__uid()

Provides {{ item.uid }}

from BaseModel
Collection
__metaProperties()

Provides {{ item.metaProperties }}

from BaseModel
__get($f)

No description

from BaseModel
__call($f, $args)

Check for properties on the wrapper then wrapped model in that order

from BaseModel
string
__name()

Help with title/name confusion

string
__fileType()

Provides {{ media.fileType }}

string
__urlDefault()

Provides {{ media.url }} property

boolean
__status()

Provides {{ media.status }} property

integer
__published()

Provides {{ media.published }} property

integer
__created()

Provides {{ media.created }} property

integer
__modified()

Provides {{ media.modified }} property

__authors()

Provides {{ media.authors }} collection

__tags()

Provides {{ media.tags }} collection

string
__caption()

Provides {{ media.caption_formatted }} string

string
__caption_formatted()

Provides {{ media.caption }} string

string
__description()

Provides {{ media.description }} string for galleries

string
__description_formatted()

Provides {{ media.description_formatted }} string for galleries

__media_id() deprecated

Provided for Gryphon2 compatibility only.

string
__urlPreview()

Provides {{ media.urlPreview }}

string
__urlThumbnail()

Provides {{ media.urlThumbnail }}

string
__url()

Provides {{ media.url }}

string
__urlOriginal()

Provides {{ media.urlOriginal }}

string
__urlCustom($props = [])

Provides {{ media.urlCustom }}

object
__extended()

Provides {{ media.extended }}

array
__mediaOrdered()

Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.

array
__media()

Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.

string
__link()

Provides {{ media.link }}

__gallery()

Provides {{ media.gallery }}

__myGallery()

Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.

myGallery()

No description

Details

in BaseModel at line 14
__construct($model)

Parameters

$model

in BaseModel at line 19
toCompat()

in BaseModel at line 28
object getCompatSource()

Return source model

Return Value

object

in BaseModel at line 37
integer __uid()

Provides {{ item.uid }}

Return Value

integer

in BaseModel at line 46
Collection __metaProperties()

Provides {{ item.metaProperties }}

Return Value

Collection

in BaseModel at line 73
__get($f)

Parameters

$f

in BaseModel at line 88
__call($f, $args)

Check for properties on the wrapper then wrapped model in that order

Parameters

$f
$args

at line 17
string __name()

Help with title/name confusion

Return Value

string

at line 26
string __fileType()

Provides {{ media.fileType }}

Return Value

string

at line 35
string __urlDefault()

Provides {{ media.url }} property

Return Value

string

at line 48
boolean __status()

Provides {{ media.status }} property

Return Value

boolean

at line 63
integer __published()

Provides {{ media.published }} property

Return Value

integer

at line 79
integer __created()

Provides {{ media.created }} property

Return Value

integer

at line 92
integer __modified()

Provides {{ media.modified }} property

Return Value

integer

at line 105
FetchHandler __authors()

Provides {{ media.authors }} collection

Return Value

FetchHandler

at line 129
FetchHandler __tags()

Provides {{ media.tags }} collection

Return Value

FetchHandler

at line 153
string __caption()

Provides {{ media.caption_formatted }} string

Return Value

string

at line 162
string __caption_formatted()

Provides {{ media.caption }} string

Return Value

string

at line 171
string __description()

Provides {{ media.description }} string for galleries

Return Value

string

at line 180
string __description_formatted()

Provides {{ media.description_formatted }} string for galleries

Return Value

string

at line 189
__media_id() deprecated

deprecated

Provided for Gryphon2 compatibility only.

at line 198
string __urlPreview()

Provides {{ media.urlPreview }}

Return Value

string

at line 220
string __urlThumbnail()

Provides {{ media.urlThumbnail }}

Return Value

string

at line 242
string __url()

Provides {{ media.url }}

Return Value

string

at line 264
string __urlOriginal()

Provides {{ media.urlOriginal }}

Return Value

string

at line 273
string __urlCustom($props = [])

Provides {{ media.urlCustom }}

Parameters

$props

Return Value

string

at line 282
object __extended()

Provides {{ media.extended }}

Return Value

object

at line 297
array __mediaOrdered()

Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.

Return Value

array

at line 315
array __media()

Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.

Return Value

array

Provides {{ media.link }}

Return Value

string

Provides {{ media.gallery }}

Return Value

Media

at line 356
Media __myGallery()

Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.

Return Value

Media

at line 360
myGallery()