PHP Class Encore\Admin\Tree

Inheritance: implements Illuminate\Contracts\Support\Renderable
Datei anzeigen Open project: z-song/laravel-admin

Protected Properties

Property Type Description
$elementId
$items
$model
$script

Public Methods

Method Description
__construct ( Model $model = null )
__toString ( ) : string Get the string contents of the grid view.
render ( ) : Illuminate\Http\JsonResponse | string Render a tree.
saveTree ( string $serialize ) : boolean Build menu tree presented by array.
variables ( ) : array Variables in tree template.

Protected Methods

Method Description
buildupScript ( ) : void Build tree grid scripts.

Method Details

__construct() public method

public __construct ( Model $model = null )
$model Illuminate\Database\Eloquent\Model

__toString() public method

Get the string contents of the grid view.
public __toString ( ) : string
return string

buildupScript() protected method

Build tree grid scripts.
protected buildupScript ( ) : void
return void

render() public method

Render a tree.
public render ( ) : Illuminate\Http\JsonResponse | string
return Illuminate\Http\JsonResponse | string

saveTree() public method

Build menu tree presented by array.
public saveTree ( string $serialize ) : boolean
$serialize string
return boolean

variables() public method

Variables in tree template.
public variables ( ) : array
return array

Property Details

$elementId protected_oe property

protected $elementId

$items protected_oe property

protected $items

$model protected_oe property

protected $model

$script protected_oe property

protected $script