PHP Класс Xpressengine\Tag\Tag

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

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

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

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

Свойство Тип Описание
$guarded array The attributes that aren't mass assignable.
$table string The table associated with the model.
$taggableTable string The table associated with the model for morph.

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

Метод Описание
getByTaggable ( string $taggableId ) : Illuminate\Database\Eloquent\Collection | static[] Returns tags of the taggable
getCount ( ) : integer Used count of model
getPopular ( string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] Returns most popular tags
getPopularPeriod ( DateTime | string $since, DateTime | string | null $until = null, string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] Returns most popular tags of date period
getPopularPeriodWhole ( DateTime | string $since, DateTime | string | null $until = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] Returns most popular tags of date period in whole
getPopularWhole ( integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] Returns most popular tags in whole
getTaggableTable ( ) : string Returns table

Приватные методы

Метод Описание
wherePeriod ( Builder $query, DateTime | string $since, DateTime | string | null $until = null ) : void Period query helper

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

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

Returns tags of the taggable
public static getByTaggable ( string $taggableId ) : Illuminate\Database\Eloquent\Collection | static[]
$taggableId string taggable id
Результат Illuminate\Database\Eloquent\Collection | static[]

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

Used count of model
public getCount ( ) : integer
Результат integer

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

Returns most popular tags
public static getPopular ( string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[]
$instanceId string | null instance id
$take integer take count
Результат Illuminate\Database\Eloquent\Collection | static[]

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

Returns most popular tags of date period
public static getPopularPeriod ( DateTime | string $since, DateTime | string | null $until = null, string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[]
$since DateTime | string begin date
$until DateTime | string | null end date
$instanceId string | null instance id
$take integer take count
Результат Illuminate\Database\Eloquent\Collection | static[]

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

Returns most popular tags of date period in whole
public static getPopularPeriodWhole ( DateTime | string $since, DateTime | string | null $until = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[]
$since DateTime | string begin date
$until DateTime | string | null end date
$take integer take count
Результат Illuminate\Database\Eloquent\Collection | static[]

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

Returns most popular tags in whole
public static getPopularWhole ( integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[]
$take integer take count
Результат Illuminate\Database\Eloquent\Collection | static[]

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

Returns table
public getTaggableTable ( ) : string
Результат string

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

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

The attributes that aren't mass assignable.
protected array $guarded
Результат array

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

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

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

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

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

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