Media
class Media extends BaseModel
Media Wrapper
Properties
protected | $model | from BaseModel | |
protected | $stack | from BaseModel |
Methods
Check for properties on the wrapper then wrapped model in that order
Help with title/name confusion
Provides {{ media.fileType }}
Provides {{ media.url }} property
Provides {{ media.status }} property
Provides {{ media.published }} property
Provides {{ media.created }} property
Provides {{ media.modified }} property
Provides {{ media.authors }} collection
Provides {{ media.tags }} collection
Provides {{ media.caption_formatted }} string
Provides {{ media.caption }} string
Provides {{ media.description }} string for galleries
Provides {{ media.description_formatted }} string for galleries
Provides {{ media.urlPreview }}
Provides {{ media.urlThumbnail }}
Provides {{ media.url }}
Provides {{ media.urlOriginal }}
Provides {{ media.urlCustom }}
Provides {{ media.extended }}
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
Provides {{ media.link }}
Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.
No description
Details
in BaseModel at line 14
__construct($model)
in BaseModel at line 19
toCompat()
in BaseModel at line 28
object
getCompatSource()
Return source model
in BaseModel at line 37
integer
__uid()
Provides {{ item.uid }}
in BaseModel at line 46
Collection
__metaProperties()
Provides {{ item.metaProperties }}
in BaseModel at line 73
__get($f)
in BaseModel at line 88
__call($f, $args)
Check for properties on the wrapper then wrapped model in that order
at line 17
string
__name()
Help with title/name confusion
at line 26
string
__fileType()
Provides {{ media.fileType }}
at line 35
string
__urlDefault()
Provides {{ media.url }} property
at line 48
boolean
__status()
Provides {{ media.status }} property
at line 63
integer
__published()
Provides {{ media.published }} property
at line 79
integer
__created()
Provides {{ media.created }} property
at line 92
integer
__modified()
Provides {{ media.modified }} property
at line 105
FetchHandler
__authors()
Provides {{ media.authors }} collection
at line 129
FetchHandler
__tags()
Provides {{ media.tags }} collection
at line 153
string
__caption()
Provides {{ media.caption_formatted }} string
at line 162
string
__caption_formatted()
Provides {{ media.caption }} string
at line 171
string
__description()
Provides {{ media.description }} string for galleries
at line 180
string
__description_formatted()
Provides {{ media.description_formatted }} string for galleries
at line 189
__media_id()
deprecated
deprecated
Provided for Gryphon2 compatibility only.
at line 198
string
__urlPreview()
Provides {{ media.urlPreview }}
at line 220
string
__urlThumbnail()
Provides {{ media.urlThumbnail }}
at line 242
string
__url()
Provides {{ media.url }}
at line 264
string
__urlOriginal()
Provides {{ media.urlOriginal }}
at line 273
string
__urlCustom($props = [])
Provides {{ media.urlCustom }}
at line 282
object
__extended()
Provides {{ media.extended }}
at line 297
array
__mediaOrdered()
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
at line 315
array
__media()
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
at line 333
string
__link()
Provides {{ media.link }}
at line 342
Media
__gallery()
Provides {{ media.gallery }}
at line 356
Media
__myGallery()
Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.