Article
class Article extends BaseModel
Article Wrapper
Properties
protected | $model | from BaseModel | |
protected | $stack | from BaseModel |
Methods
Check for properties on the wrapper then wrapped model in that order
Provides {{ article.url }} property
Provides {{ article.status }} property
Provides {{ article.published }} property
Provides {{ article.created }} property
Provides {{ article.modified }} property
Provides {{ article.authors }} collection
Provides {{ article.tags }} collection
Provides {{ article.sections }}. Note that this will only return sections related to the article via tag - CEO's "automatic" sections. This will not return manual containers because that's now how Gryphon worked.
Provides {{ article.media }} collection
No description
Provides {{ article.copy }} string
Provides {{ article.copy_formatted }} string
Provides {{ article.abstract_formatted }} string
Provides {{ article.headline_formatted }} string
Provides {{ article.subhead_formatted }} string
Provides {{ article.infobox_formatted }} string
One of gryphon's attributes (before traits) allowed for
title
.
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 18
string
__url()
Provides {{ article.url }} property
at line 27
boolean
__status()
Provides {{ article.status }} property
at line 42
integer
__published()
Provides {{ article.published }} property
at line 61
integer
__created()
Provides {{ article.created }} property
at line 77
integer
__modified()
Provides {{ article.modified }} property
at line 93
FetchHandler
__authors()
Provides {{ article.authors }} collection
at line 117
FetchHandler
__tags()
Provides {{ article.tags }} collection
at line 144
__sections()
Provides {{ article.sections }}. Note that this will only return sections related to the article via tag - CEO's "automatic" sections. This will not return manual containers because that's now how Gryphon worked.
To fetch an article's manually associated containers, use {{ article.containers }}.
at line 167
FetchHandler
__media()
Provides {{ article.media }} collection
at line 183
__mediaOrdered()
at line 192
string
__copy()
Provides {{ article.copy }} string
at line 201
string
__copy_formatted()
Provides {{ article.copy_formatted }} string
at line 210
string
__abstract_formatted()
Provides {{ article.abstract_formatted }} string
at line 219
string
__headline_formatted()
Provides {{ article.headline_formatted }} string
at line 228
string
__subhead_formatted()
Provides {{ article.subhead_formatted }} string
at line 237
string
__infobox_formatted()
Provides {{ article.infobox_formatted }} string
at line 247
string
__title()
One of gryphon's attributes (before traits) allowed for
title
.