PHP 클래스 Corcel\TermTaxonomy

상속: extends Model
파일 보기 프로젝트 열기: jgrossi/corcel

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$primaryKey
$table
$with

공개 메소드들

메소드 설명
__get ( string $key ) : string Magic method to return the meta data like the post original fields
nav_items ( ) : Illuminate\Database\Eloquent\Relations Alias from posts, but made quering nav_items cleaner.
newQuery ( boolean $excludeDeleted = true ) : Corcel\TermTaxonomyBuilder Overriding newQuery() to the custom TermTaxonomyBuilder with some interesting methods
parentTerm ( ) : Illuminate\Database\Eloquent\Relations Relationship with parent Term model
posts ( ) : Illuminate\Database\Eloquent\Relations Relationship with Posts model
term ( ) : Illuminate\Database\Eloquent\Relations Relationship with Term model

메소드 상세

__get() 공개 메소드

Magic method to return the meta data like the post original fields
public __get ( string $key ) : string
$key string
리턴 string

nav_items() 공개 메소드

Also only possible to use when Menu model is called or taxonomy is 'nav_menu'
public nav_items ( ) : Illuminate\Database\Eloquent\Relations
리턴 Illuminate\Database\Eloquent\Relations

newQuery() 공개 메소드

Overriding newQuery() to the custom TermTaxonomyBuilder with some interesting methods
public newQuery ( boolean $excludeDeleted = true ) : Corcel\TermTaxonomyBuilder
$excludeDeleted boolean
리턴 Corcel\TermTaxonomyBuilder

parentTerm() 공개 메소드

Relationship with parent Term model
public parentTerm ( ) : Illuminate\Database\Eloquent\Relations
리턴 Illuminate\Database\Eloquent\Relations

posts() 공개 메소드

Relationship with Posts model
public posts ( ) : Illuminate\Database\Eloquent\Relations
리턴 Illuminate\Database\Eloquent\Relations

term() 공개 메소드

Relationship with Term model
public term ( ) : Illuminate\Database\Eloquent\Relations
리턴 Illuminate\Database\Eloquent\Relations

프로퍼티 상세

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

protected $primaryKey

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

protected $table

$timestamps 공개적으로 프로퍼티

public $timestamps

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

protected $with