class ViewStubs

Collection of stubs for view files.

Methods

static string
cardComponent()

Returns contents of a card component.

static string
formComponent(string $method, string $encType)

Generates content of form component.

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
tableComponent()

Generates content for table component.

static string
viewContent()

Generates content for view file.

Details

at line 14
static string cardComponent()

Returns contents of a card component.

Return Value

string

The contents of a card component.

at line 30
static string formComponent(string $method, string $encType)

Generates content of form component.

Parameters

string $method

The method to be used.

string $encType

The enctype to be used.

Return Value

string

The contents of the form component.

at line 47
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 104
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 150
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 164
static string tableComponent()

Generates content for table component.

Return Value

string

The content of the table component.

at line 182
static string viewContent()

Generates content for view file.

Return Value

string

The content for the view file.