class View

Supports ability to create views, layouts, components, and menu_acl json files.

Constants

COMPONENTS_PATH

Path to components.

CSS_PATH

Path to CSS files.

LAYOUT_PATH

Path to layout files.

VIEW_PATH

Path to view files.

WIDGET_PATH

Path to widget files.

Methods

static int
makeCardComponent(string $componentName)

Writes card component to a file.

static int
makeCSS(string $fileName)

Generates a new CSS file.

static int
makeFormComponent(string $componentName, string $method, string $encType)

Writes form component to file.

static int
makeLayout(string $layoutName, string $menuName = 'main')

Generates a new layout file.

static int
makeMenu(string $menuName)

Generates a new menu file.

static int
makeMenuAcl(string $menuName)

Generates a new menu_acl file.

static int
makeTableComponent(string $componentName)

Writes table component to a file.

static int
makeView(string $filePath)

Writes template for view to a file.

static int
makeWidget(string $filePath)

Writes new file for widget.

Details

at line 30
static int makeCardComponent(string $componentName)

Writes card component to a file.

Parameters

string $componentName

The name of the card component.

Return Value

int

A value that indicates success, invalid, or failure.

at line 44
static int makeCSS(string $fileName)

Generates a new CSS file.

Parameters

string $fileName

The name of the CSS file.

Return Value

int

A value that indicates success, invalid, or failure.

at line 60
static int makeFormComponent(string $componentName, string $method, string $encType)

Writes form component to file.

Parameters

string $componentName

The name of the form component.

string $method

The method to be used.

string $encType

The enctype to be used.

Return Value

int

A value that indicates success, invalid, or failure.

at line 75
static int makeLayout(string $layoutName, string $menuName = 'main')

Generates a new layout file.

Parameters

string $layoutName

The name of the layout.

string $menuName

The name of the menu to be used.

Return Value

int

A value that indicates success, invalid, or failure.

at line 90
static int makeMenu(string $menuName)

Generates a new menu file.

Parameters

string $menuName

Return Value

int

A value that indicates success, invalid, or failure.

at line 104
static int makeMenuAcl(string $menuName)

Generates a new menu_acl file.

Parameters

string $menuName

The name of the menu_acl file.

Return Value

int

A value that indicates success, invalid, or failure.

at line 118
static int makeTableComponent(string $componentName)

Writes table component to a file.

Parameters

string $componentName

The name of the table component.

Return Value

int

A value that indicates success, invalid, or failure.

at line 132
static int makeView(string $filePath)

Writes template for view to a file.

Parameters

string $filePath

Return Value

int

A value that indicates success, invalid, or failure.

at line 142
static int makeWidget(string $filePath)

Writes new file for widget.

Parameters

string $filePath

The path to the widget file.

Return Value

int

A value that indicates success, invalid, or failure.