View
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
Returns contents of a card component.
Generates content of form component.
Generates a layout compatible with React.js
Writes card component to a file.
Generates a new CSS file.
Writes form component to file.
Generates a new layout file.
Generates a new menu file.
Generates a new menu_acl file.
Writes table component to a file.
Writes template for view to a file.
Writes new file for widget.
Returns a string containing contents for a menu.
Returns a string containing contents of a json menu acl file.
Generates content for table component.
Generates content for view file.
Details
at line 27
static string
cardComponent()
Returns contents of a card component.
at line 43
static string
formComponent(string $method, string $encType)
Generates content of form component.
at line 60
static string
layout(string $menuName)
Generates a layout compatible with React.js
at line 117
static int
makeCardComponent(string $componentName)
Writes card component to a file.
at line 131
static int
makeCSS(string $fileName)
Generates a new CSS file.
at line 147
static int
makeFormComponent(string $componentName, string $method, string $encType)
Writes form component to file.
at line 162
static int
makeLayout(string $layoutName, string $menuName = 'main')
Generates a new layout file.
at line 177
static int
makeMenu(string $menuName)
Generates a new menu file.
at line 191
static int
makeMenuAcl(string $menuName)
Generates a new menu_acl file.
at line 205
static int
makeTableComponent(string $componentName)
Writes table component to a file.
at line 219
static int
makeView(string $filePath)
Writes template for view to a file.
at line 229
static int
makeWidget(string $filePath)
Writes new file for widget.
at line 239
static string
menu(string $menuName)
Returns a string containing contents for a menu.
at line 286
static string
menuAcl(string $menuName)
Returns a string containing contents of a json menu acl file.
at line 300
static string
tableComponent()
Generates content for table component.
at line 318
static string
viewContent()
Generates content for view file.