PHP 클래스 Encore\Admin\Auth\Database\Menu

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: z-song/laravel-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$branchOrder array
$fillable array The attributes that are mass assignable.

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) Create a new Eloquent model instance.
buildSelectOptions ( array $elements = [], integer $parentId, string $prefix = '' ) : array Build options of select field in form.
delete ( ) : boolean | null Delete current item and its children.
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany A Menu belongs to many roles.
saveTree ( array $tree = [], integer $parentId ) Save a tree from a tree like array.
toTree ( array $elements = [], integer $parentId ) : array Format data to tree like array.

보호된 메소드들

메소드 설명
setBranchOrder ( array $order ) : void Set the order of branches in the tree.

메소드 상세

__construct() 공개 메소드

Create a new Eloquent model instance.
public __construct ( array $attributes = [] )
$attributes array

buildSelectOptions() 공개 정적인 메소드

Build options of select field in form.
public static buildSelectOptions ( array $elements = [], integer $parentId, string $prefix = '' ) : array
$elements array
$parentId integer
$prefix string
리턴 array

delete() 공개 메소드

Delete current item and its children.
public delete ( ) : boolean | null
리턴 boolean | null

roles() 공개 메소드

A Menu belongs to many roles.
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
리턴 Illuminate\Database\Eloquent\Relations\BelongsToMany

saveTree() 공개 정적인 메소드

Save a tree from a tree like array.
public static saveTree ( array $tree = [], integer $parentId )
$tree array
$parentId integer

setBranchOrder() 보호된 정적인 메소드

Set the order of branches in the tree.
protected static setBranchOrder ( array $order ) : void
$order array
리턴 void

toTree() 공개 정적인 메소드

Format data to tree like array.
public static toTree ( array $elements = [], integer $parentId ) : array
$elements array
$parentId integer
리턴 array

프로퍼티 상세

$branchOrder 보호되어 있는 정적으로 프로퍼티

protected static array $branchOrder
리턴 array

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

The attributes that are mass assignable.
protected array $fillable
리턴 array