class ViewStubs

Collection of stubs for view files.

Methods

static string
layout(string $menuName)

Generates a layout compatible with React.js

static string
menu(string $menuName)

Returns a string containing contents for a menu.

static string
menuAcl(string $menuName)

Returns a string containing contents of a json menu acl file.

static string
viewContent()

Generates content for view file.

Details

at line 15
static string layout(string $menuName)

Generates a layout compatible with React.js

Parameters

string $menuName

The name of the menu for the layout

Return Value

string

The contents of the layout.

at line 72
static string menu(string $menuName)

Returns a string containing contents for a menu.

Parameters

string $menuName

The name for a new menu.

Return Value

string

The contents for a new menu.

at line 118
static string menuAcl(string $menuName)

Returns a string containing contents of a json menu acl file.

Parameters

string $menuName

The name of the acl file that matches your menu name

Return Value

string

The contents of the json menu acl file.

at line 132
static string viewContent()

Generates content for view file.

Return Value

string

The content for the view file.