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
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.
at line 44
static int
makeCSS(string $fileName)
Generates a new CSS file.
at line 60
static int
makeFormComponent(string $componentName, string $method, string $encType)
Writes form component to file.
at line 75
static int
makeLayout(string $layoutName, string $menuName = 'main')
Generates a new layout file.
at line 90
static int
makeMenu(string $menuName)
Generates a new menu file.
at line 104
static int
makeMenuAcl(string $menuName)
Generates a new menu_acl file.
at line 118
static int
makeTableComponent(string $componentName)
Writes table component to a file.
at line 132
static int
makeView(string $filePath)
Writes template for view to a file.
at line 142
static int
makeWidget(string $filePath)
Writes new file for widget.