class Category extends BaseModel

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

Properties

protected $model from BaseModel
protected $stack from BaseModel
protected $_ads

Methods

__construct($model)

No description

from BaseModel
toCompat()

No description

from BaseModel
object
getCompatSource()

Return source model

from BaseModel
integer
__uid()

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

Collection
__metaProperties()

Provides {{ item.metaProperties }}

from BaseModel
__get($f)

No description

from BaseModel
__call($f, $args)

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

from BaseModel
string
__name()

Provides {{ category.name }}

string
__url()

Provides {{ category.url }}

array
__ads()

Provides {{ category.ads }}

Details

in BaseModel at line 14
__construct($model)

Parameters

$model

in BaseModel at line 19
toCompat()

in BaseModel at line 28
object getCompatSource()

Return source model

Return Value

object

at line 22
integer __uid()

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

Provides {{ category.uid }}

Return Value

integer

in BaseModel at line 46
Collection __metaProperties()

Provides {{ item.metaProperties }}

Return Value

Collection

in BaseModel at line 73
__get($f)

Parameters

$f

in BaseModel at line 88
__call($f, $args)

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

Parameters

$f
$args

at line 31
string __name()

Provides {{ category.name }}

Return Value

string

at line 40
string __url()

Provides {{ category.url }}

Return Value

string

at line 50
array __ads()

Provides {{ category.ads }}

Return Value

array

See also

\Snworks\Compat\Model\Ad