Media
extends BaseModel
in package
Media Wrapper
Table of Contents
- $model : mixed
- $stack : mixed
- __authors() : FetchHandler
- Provides {{ media.authors }} collection
- __call() : mixed
- Check for properties on the wrapper then wrapped model in that order
- __caption() : string
- Provides {{ media.caption_formatted }} string
- __caption_formatted() : string
- Provides {{ media.caption }} string
- __construct() : mixed
- __created() : int
- Provides {{ media.created }} property
- __description() : string
- Provides {{ media.description }} string for galleries
- __description_formatted() : string
- Provides {{ media.description_formatted }} string for galleries
- __extended() : object
- Provides {{ media.extended }}
- __fileType() : string
- Provides {{ media.fileType }}
- __gallery() : self
- Provides {{ media.gallery }}
- __get() : mixed
- __link() : string
- Provides {{ media.link }}
- __media() : array<string|int, mixed>
- Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
- __media_id() : mixed
- Provided for Gryphon2 compatibility only.
- __mediaOrdered() : array<string|int, mixed>
- Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
- __metaProperties() : Collection
- Provides {{ item.metaProperties }}
- __modified() : int
- Provides {{ media.modified }} property
- __myGallery() : self
- Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.
- __name() : string
- Help with title/name confusion
- __published() : int
- Provides {{ media.published }} property
- __status() : bool
- Provides {{ media.status }} property
- __tags() : FetchHandler
- Provides {{ media.tags }} collection
- __uid() : int
- Provides {{ item.uid }}
- __url() : string
- Provides {{ media.url }}
- __urlCustom() : string
- Provides {{ media.urlCustom }}
- __urlDefault() : string
- Provides {{ media.url }} property
- __urlOriginal() : string
- Provides {{ media.urlOriginal }}
- __urlPreview() : string
- Provides {{ media.urlPreview }}
- __urlThumbnail() : string
- Provides {{ media.urlThumbnail }}
- getCompatSource() : object
- Return source model
- myGallery() : mixed
- toCompat() : mixed
Properties
$model
protected
mixed
$model
$stack
protected
mixed
$stack
= []
Methods
__authors()
Provides {{ media.authors }} collection
public
__authors() : FetchHandler
Return values
FetchHandler —__call()
Check for properties on the wrapper then wrapped model in that order
public
__call(mixed $f, mixed $args) : mixed
Parameters
- $f : mixed
- $args : mixed
Return values
mixed —__caption()
Provides {{ media.caption_formatted }} string
public
__caption() : string
Return values
string —__caption_formatted()
Provides {{ media.caption }} string
public
__caption_formatted() : string
Return values
string —__construct()
public
__construct(mixed $model) : mixed
Parameters
- $model : mixed
Return values
mixed —__created()
Provides {{ media.created }} property
public
__created() : int
Return values
int —__description()
Provides {{ media.description }} string for galleries
public
__description() : string
Return values
string —__description_formatted()
Provides {{ media.description_formatted }} string for galleries
public
__description_formatted() : string
Return values
string —__extended()
Provides {{ media.extended }}
public
__extended() : object
Return values
object —__fileType()
Provides {{ media.fileType }}
public
__fileType() : string
Return values
string —__gallery()
Provides {{ media.gallery }}
public
__gallery() : self
Return values
self —__get()
public
__get(mixed $f) : mixed
Parameters
- $f : mixed
Return values
mixed —__link()
Provides {{ media.link }}
public
__link() : string
Return values
string —__media()
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
public
__media() : array<string|int, mixed>
Return values
array<string|int, mixed> —__media_id()
Provided for Gryphon2 compatibility only.
public
__media_id() : mixed
Tags
Return values
mixed —__mediaOrdered()
Provides {{ gallery.mediaOrdered }} and {{ gallery.media }} with compat child elements.
public
__mediaOrdered() : array<string|int, mixed>
Return values
array<string|int, mixed> —__metaProperties()
Provides {{ item.metaProperties }}
public
__metaProperties() : Collection
Return values
Collection —__modified()
Provides {{ media.modified }} property
public
__modified() : int
Return values
int —__myGallery()
Old skool myGallery support. Note that this method of gallery access has been deprecated since Gryphon 2.
public
__myGallery() : self
Return values
self —__name()
Help with title/name confusion
public
__name() : string
Return values
string —__published()
Provides {{ media.published }} property
public
__published() : int
Return values
int —__status()
Provides {{ media.status }} property
public
__status() : bool
Return values
bool —__tags()
Provides {{ media.tags }} collection
public
__tags() : FetchHandler
Return values
FetchHandler —__uid()
Provides {{ item.uid }}
public
__uid() : int
Return values
int —__url()
Provides {{ media.url }}
public
__url() : string
Return values
string —__urlCustom()
Provides {{ media.urlCustom }}
public
__urlCustom([mixed $props = [] ]) : string
Parameters
- $props : mixed = []
Return values
string —__urlDefault()
Provides {{ media.url }} property
public
__urlDefault() : string
Return values
string —__urlOriginal()
Provides {{ media.urlOriginal }}
public
__urlOriginal() : string
Return values
string —__urlPreview()
Provides {{ media.urlPreview }}
public
__urlPreview() : string
Return values
string —__urlThumbnail()
Provides {{ media.urlThumbnail }}
public
__urlThumbnail() : string
Return values
string —getCompatSource()
Return source model
public
getCompatSource() : object
Return values
object —myGallery()
public
myGallery() : mixed
Return values
mixed —toCompat()
public
toCompat() : mixed