PHP Class Xpressengine\Tag\Tag

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Database\Eloquent\DynamicModel
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Свойство Type Description
$timestamps boolean Indicates if the model should be timestamped.

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
wherePeriod ( Builder $query, DateTime | string $since, DateTime | string | null $until = null ) : void Period query helper

Method Details

getByTaggable() public static méthode

Returns tags of the taggable
public static getByTaggable ( string $taggableId ) : Illuminate\Database\Eloquent\Collection | static[]
$taggableId string taggable id
Résultat Illuminate\Database\Eloquent\Collection | static[]

getCount() public méthode

Used count of model
public getCount ( ) : integer
Résultat integer

getPopular() public static méthode

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
Résultat Illuminate\Database\Eloquent\Collection | static[]

getPopularPeriod() public static méthode

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
Résultat Illuminate\Database\Eloquent\Collection | static[]

getPopularPeriodWhole() public static méthode

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
Résultat Illuminate\Database\Eloquent\Collection | static[]

getPopularWhole() public static méthode

Returns most popular tags in whole
public static getPopularWhole ( integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[]
$take integer take count
Résultat Illuminate\Database\Eloquent\Collection | static[]

getTaggableTable() public méthode

Returns table
public getTaggableTable ( ) : string
Résultat string

Property Details

$guarded protected_oe property

The attributes that aren't mass assignable.
protected array $guarded
Résultat array

$table protected_oe property

The table associated with the model.
protected string $table
Résultat string

$taggableTable protected_oe property

The table associated with the model for morph.
protected string $taggableTable
Résultat string

$timestamps public_oe property

Indicates if the model should be timestamped.
public bool $timestamps
Résultat boolean