\Snworks\Compat\ModelCategory

Wrapper for snworks:category, wraps Ceo\Models\Entry.

Summary

Methods
Properties
Constants
__construct()
toCompat()
getCompatSource()
__uid()
__metaProperties()
__get()
__call()
__name()
__url()
__ads()
No public properties found
No constants found
No protected methods found
$model
$stack
$_ads
N/A
No private methods found
No private properties found
N/A

Properties

$model

$model : 

Type

$stack

$stack : 

Type

$_ads

$_ads : 

Type

Methods

__construct()

__construct(  $model) 

Parameters

$model

toCompat()

toCompat() 

getCompatSource()

getCompatSource() : object

Return source model

Returns

object

__uid()

__uid() : string

Normally uid returns id, but in this case we want the uuid for tracking purposes.

Provides {{ category.uid }}

Returns

string

__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

__name()

__name() : string

Provides {{ category.name }}

Returns

string

__url()

__url() : string

Provides {{ category.url }}

Returns

string

__ads()

__ads() : array

Provides {{ category.ads }}

Returns

array