\Snworks\Compat\ModelAd

snworks:ad Compat Model. Wraps Ceo\Models\Entry.

Summary

Methods
Properties
Constants
__construct()
toCompat()
getCompatSource()
__uid()
__metaProperties()
__get()
__call()
__category()
__url()
__preview()
__copy()
No public properties found
No constants found
getAd()
$model
$stack
$_category
$_ad
N/A
No private methods found
No private properties found
N/A

Properties

$model

$model : 

Type

$stack

$stack : 

Type

$_category

$_category : 

Type

$_ad

$_ad : 

Type

Methods

__construct()

__construct(  $model) 

Parameters

$model

toCompat()

toCompat() 

getCompatSource()

getCompatSource() : object

Return source model

Returns

object

__uid()

__uid() : integer

Provides {{ item.uid }}

Returns

integer

__metaProperties()

__metaProperties() : \Ceo\Compat\Model\Ceo\Compat\Collection

Provides {{ item.metaProperties }}

Returns

\Ceo\Compat\Model\Ceo\Compat\Collection

__get()

__get(  $f) 

Parameters

$f

__call()

__call(  $f,   $args) 

Check for properties on the wrapper then wrapped model in that order

Parameters

$f
$args

__url()

__url() : string

Provides {{ ad.url }}

Returns

string

__preview()

__preview() : string

Provides {{ ad.preview }}

Returns

string

__copy()

__copy() : string

Provides {{ ad.copy }}

Returns

string

getAd()

getAd() : string

Fetch ad copy as entry meta

Returns

string