PHP 클래스 Fenos\Notifynder\Models\Notification

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: fenos/notifynder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable array

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) Notification constructor.
body ( ) : BelongsTo
from ( ) : BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo
getCustomFillableFields ( ) : mixed Get custom required fields from the configs so that we can automatically bind them to the model fillable property.
getExtraAttribute ( $value ) : ExtraParams
getNotifyBodyAttribute ( ) : string Get parsed body attributes.
getStack ( ) : null | Illuminate\Database\Eloquent\Collection Get the full stack of notifications if this has one.
getTextAttribute ( ) : string Get parsed body attributes.
hasStack ( ) : boolean Check if this notification is part of a stack.
newCollection ( array $models = [] ) : NotifynderCollection | Illuminate\Database\Eloquent\Collection Custom Collection.
scopeByCategory ( $query, $category ) : mixed Filter Scope by category.
scopeByStack ( $query, $stackId ) : mixed Filter Scope by stack.
scopeOnlyExpired ( $query ) : mixed Only Expired Notification scope.
scopeWherePolymorphic ( $query, $toId, $type ) : mixed Where Polymorphic.
scopeWithNotRead ( $query ) : mixed Not read scope.
to ( ) : BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo

보호된 메소드들

메소드 설명
mergeFillable ( ) : array

메소드 상세

__construct() 공개 메소드

Notification constructor.
public __construct ( array $attributes = [] )
$attributes array

body() 공개 메소드

public body ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

from() 공개 메소드

public from ( ) : BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo

getCustomFillableFields() 공개 메소드

Get custom required fields from the configs so that we can automatically bind them to the model fillable property.
public getCustomFillableFields ( ) : mixed
리턴 mixed

getExtraAttribute() 공개 메소드

public getExtraAttribute ( $value ) : ExtraParams
$value
리턴 Fenos\Notifynder\Notifications\ExtraParams

getNotifyBodyAttribute() 공개 메소드

Get parsed body attributes.
public getNotifyBodyAttribute ( ) : string
리턴 string

getStack() 공개 메소드

Get the full stack of notifications if this has one.
public getStack ( ) : null | Illuminate\Database\Eloquent\Collection
리턴 null | Illuminate\Database\Eloquent\Collection

getTextAttribute() 공개 메소드

Get parsed body attributes.
public getTextAttribute ( ) : string
리턴 string

hasStack() 공개 메소드

Check if this notification is part of a stack.
public hasStack ( ) : boolean
리턴 boolean

mergeFillable() 보호된 메소드

protected mergeFillable ( ) : array
리턴 array

newCollection() 공개 메소드

Custom Collection.
public newCollection ( array $models = [] ) : NotifynderCollection | Illuminate\Database\Eloquent\Collection
$models array
리턴 NotifynderCollection | Illuminate\Database\Eloquent\Collection

scopeByCategory() 공개 메소드

Filter Scope by category.
public scopeByCategory ( $query, $category ) : mixed
$query
$category
리턴 mixed

scopeByStack() 공개 메소드

Filter Scope by stack.
public scopeByStack ( $query, $stackId ) : mixed
$query
$stackId
리턴 mixed

scopeOnlyExpired() 공개 메소드

Only Expired Notification scope.
public scopeOnlyExpired ( $query ) : mixed
$query
리턴 mixed

scopeWherePolymorphic() 공개 메소드

Where Polymorphic.
public scopeWherePolymorphic ( $query, $toId, $type ) : mixed
$query
$toId
$type
리턴 mixed

scopeWithNotRead() 공개 메소드

Not read scope.
public scopeWithNotRead ( $query ) : mixed
$query
리턴 mixed

to() 공개 메소드

public to ( ) : BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo | Illuminate\Database\Eloquent\Relations\MorphTo

프로퍼티 상세

$fillable 보호되어 있는 프로퍼티

protected array $fillable
리턴 array