PHP 클래스 Xpressengine\Tag\Tag

저자: XE Developers ([email protected])
상속: extends Xpressengine\Database\Eloquent\DynamicModel
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps boolean Indicates if the model should be timestamped.

보호된 프로퍼티들

프로퍼티 타입 설명
$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