PHP Class Corcel\TermTaxonomy

Inheritance: extends Model
Afficher le fichier Open project: jgrossi/corcel

Méthodes publiques

Свойство Type Description
$timestamps

Protected Properties

Свойство Type Description
$primaryKey
$table
$with

Méthodes publiques

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

Method Details

__get() public méthode

Magic method to return the meta data like the post original fields
public __get ( string $key ) : string
$key string
Résultat string

nav_items() public méthode

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

newQuery() public méthode

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

parentTerm() public méthode

Relationship with parent Term model
public parentTerm ( ) : Illuminate\Database\Eloquent\Relations
Résultat Illuminate\Database\Eloquent\Relations

posts() public méthode

Relationship with Posts model
public posts ( ) : Illuminate\Database\Eloquent\Relations
Résultat Illuminate\Database\Eloquent\Relations

term() public méthode

Relationship with Term model
public term ( ) : Illuminate\Database\Eloquent\Relations
Résultat Illuminate\Database\Eloquent\Relations

Property Details

$primaryKey protected_oe property

protected $primaryKey

$table protected_oe property

protected $table

$timestamps public_oe property

public $timestamps

$with protected_oe property

protected $with