Ad
class Ad extends BaseModel
snworks:ad Compat Model. Wraps Ceo\Models\Entry.
Properties
protected | $model | from BaseModel | |
protected | $stack | from BaseModel | |
protected | $_category | ||
protected | $_ad |
Methods
__call($f, $args)
Check for properties on the wrapper then wrapped model in that order
from BaseModel
__category()
Provides {{ ad.category }}
string
__url()
Provides {{ ad.url }}
string
__preview()
Provides {{ ad.preview }}
string
__copy()
Provides {{ ad.copy }}
string
getAd()
Fetch ad copy as entry meta
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 23
Category
__category()
Provides {{ ad.category }}
at line 41
string
__url()
Provides {{ ad.url }}
at line 50
string
__preview()
Provides {{ ad.preview }}
at line 59
string
__copy()
Provides {{ ad.copy }}
at line 68
protected string
getAd()
Fetch ad copy as entry meta