PHP Class Corcel\TermTaxonomy

Inheritance: extends Model
Datei anzeigen Open project: jgrossi/corcel

Public Properties

Property Type Description
$timestamps

Protected Properties

Property Type Description
$primaryKey
$table
$with

Public Methods

Method 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 method

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

nav_items() public method

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

newQuery() public method

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

parentTerm() public method

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

posts() public method

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

term() public method

Relationship with Term model
public term ( ) : Illuminate\Database\Eloquent\Relations
return 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