PHP Class Xpressengine\Category\Models\Category

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Support\Tree\Aggregator
Show file Open project: xpressengine/xpressengine Class Usage Examples

Public Properties

Property Type Description
$timestamps boolean Indicates if the model should be timestamped.

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$itemModel string Category item model
$table string The table associated with the model.

Public Methods

Method Description
getCountName ( ) : string Get the count name for model
getItemModel ( ) : string Get the category item model
getProgenitors ( ) : Illuminate\Database\Eloquent\Collection Get category items of root level
setItemModel ( string $model ) : void Set the category item model

Method Details

getCountName() public method

Get the count name for model
public getCountName ( ) : string
return string

getItemModel() public method

Get the category item model
public getItemModel ( ) : string
return string

getProgenitors() public method

Get category items of root level
public getProgenitors ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection

setItemModel() public static method

Set the category item model
public static setItemModel ( string $model ) : void
$model string model name
return void

Property Details

$fillable protected property

The attributes that are mass assignable.
protected array $fillable
return array

$itemModel protected static property

Category item model
protected static string $itemModel
return string

$table protected property

The table associated with the model.
protected string $table
return string

$timestamps public property

Indicates if the model should be timestamped.
public bool $timestamps
return boolean