PHP Class app\models\Article

Inheritance: extends yii\base\Model
Show file Open project: spatie-custom/blender Class Usage Examples

Public Properties

Property Type Description
$mediaLibraryCollections
$translatable

Protected Properties

Property Type Description
$with

Public Methods

Method Description
children ( ) : Illuminate\Database\Eloquent\Relations\HasMany
getFirstChildAttribute ( ) : Article
getFullUrlAttribute ( ) : string
getSiblingsAttribute ( ) : Collection
hasChildren ( ) : boolean
hasParent ( ) : boolean
isSpecialArticle ( ) : boolean
parent ( ) : BelongsTo
registerMediaConversions ( )

Method Details

children() public method

public children ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

getFirstChildAttribute() public method

public getFirstChildAttribute ( ) : Article
return Article

getFullUrlAttribute() public method

public getFullUrlAttribute ( ) : string
return string

getSiblingsAttribute() public method

public getSiblingsAttribute ( ) : Collection
return Illuminate\Support\Collection

hasChildren() public method

public hasChildren ( ) : boolean
return boolean

hasParent() public method

public hasParent ( ) : boolean
return boolean

isSpecialArticle() public method

public isSpecialArticle ( ) : boolean
return boolean

parent() public method

public parent ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

registerMediaConversions() public method

Property Details

$mediaLibraryCollections public property

public $mediaLibraryCollections

$translatable public property

public $translatable

$with protected property

protected $with