Ad
extends BaseModel
in package
snworks:ad Compat Model. Wraps Ceo\Models\Entry.
Tags
Table of Contents
- $_ad : mixed
- $_category : mixed
- $model : mixed
- $stack : mixed
- __call() : mixed
- Check for properties on the wrapper then wrapped model in that order
- __category() : Category
- Provides {{ ad.category }}
- __construct() : mixed
- __copy() : string
- Provides {{ ad.copy }}
- __get() : mixed
- __metaProperties() : Collection
- Provides {{ item.metaProperties }}
- __preview() : string
- Provides {{ ad.preview }}
- __uid() : int
- Provides {{ item.uid }}
- __url() : string
- Provides {{ ad.url }}
- getCompatSource() : object
- Return source model
- toCompat() : mixed
- getAd() : string
- Fetch ad copy as entry meta
Properties
$_ad
protected
mixed
$_ad
$_category
protected
mixed
$_category
$model
protected
mixed
$model
$stack
protected
mixed
$stack
= []
Methods
__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 —__category()
Provides {{ ad.category }}
public
__category() : Category
Tags
Return values
Category —__construct()
public
__construct(mixed $model) : mixed
Parameters
- $model : mixed
Return values
mixed —__copy()
Provides {{ ad.copy }}
public
__copy() : string
Return values
string —__get()
public
__get(mixed $f) : mixed
Parameters
- $f : mixed
Return values
mixed —__metaProperties()
Provides {{ item.metaProperties }}
public
__metaProperties() : Collection
Return values
Collection —__preview()
Provides {{ ad.preview }}
public
__preview() : string
Return values
string —__uid()
Provides {{ item.uid }}
public
__uid() : int
Return values
int —__url()
Provides {{ ad.url }}
public
__url() : string
Return values
string —getCompatSource()
Return source model
public
getCompatSource() : object
Return values
object —toCompat()
public
toCompat() : mixed
Return values
mixed —getAd()
Fetch ad copy as entry meta
protected
getAd() : string