PHP Класс Xpressengine\Category\Models\Category

Автор: XE Developers ([email protected])
Наследование: extends Xpressengine\Support\Tree\Aggregator
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$timestamps boolean Indicates if the model should be timestamped.

Защищенные свойства (Protected)

Свойство Тип Описание
$fillable array The attributes that are mass assignable.
$itemModel string Category item model
$table string The table associated with the model.

Открытые методы

Метод Описание
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

Описание методов

getCountName() публичный Метод

Get the count name for model
public getCountName ( ) : string
Результат string

getItemModel() публичный Метод

Get the category item model
public getItemModel ( ) : string
Результат string

getProgenitors() публичный Метод

Get category items of root level
public getProgenitors ( ) : Illuminate\Database\Eloquent\Collection
Результат Illuminate\Database\Eloquent\Collection

setItemModel() публичный статический Метод

Set the category item model
public static setItemModel ( string $model ) : void
$model string model name
Результат void

Описание свойств

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$itemModel защищенное статическое свойство

Category item model
protected static string $itemModel
Результат string

$table защищенное свойство

The table associated with the model.
protected string $table
Результат string

$timestamps публичное свойство

Indicates if the model should be timestamped.
public bool $timestamps
Результат boolean