PHP Класс Corcel\TermTaxonomy

Наследование: extends Model
Показать файл Открыть проект

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

Свойство Тип Описание
$timestamps

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

Свойство Тип Описание
$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