Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (67) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2020-07-07 (2 months ago) | Not yet rated by the users | Total: 63 | All time: 9,762 This week: 310 |
Version | License | PHP version | Categories | |||
mezon-gui 1.0.0 | MIT/X Consortium ... | 5 | HTML, PHP 5, Validation |
Description | Author | |
This package can be used to generate HTML based user interfaces from component classes. |
Mezon provides set of classes for GUI creation.
Just print in console
composer require mezon/gui
And that's all )
This class provides utilities for date and time tasks. For example this call:
Mezon\Class\DateTimeUtils::isToday('2020-02-02');
Will return true if the passed date is a today and false otherwise.
And this method will return true if the passed date was a yesterday:
Mezon\Class\DateTimeUtils::isYesterday('2020-02-02');
But we also can get name of the month by it's code:
Mezon\Class\DateTimeUtils::locale = 'ru';
var_dump(Mezon\Class\DateTimeUtils::dayMonth('2020-02-02'));
This class provides routines for operation with form fields. To init this class use constructor:
$fields = new \Mezon\Gui\FieldsAlgorithms([
'id'=>['type'=>'int'],
'description'=>['type'=>'string']
]);
Here we define two fields.
Form builder is obviously used for building forms )
It can be done like this:
$form = new \Mezon\Gui\FormBuilder([
'id' => [
'type' => 'int',
'title' => 'our entity's id'
],
'title' => [
'type' => 'string',
'title' => 'our entity's title'
]
]);
Files |
File | Role | Description | ||
---|---|---|---|---|
Field (11 files) | ||||
FormBuilder (2 files) | ||||
ListBuilder (1 file) | ||||
res (1 directory) | ||||
Tests (18 files, 1 directory) | ||||
WidgetsRegistry (2 files, 1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
Control.php | Class | Class source | ||
Field.php | Class | Class source | ||
FieldsAlgorithms.php | Class | Class source | ||
FormBuilder.php | Class | Class source | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | Field |
File | Role | Description |
---|---|---|
CheckboxesField.php | Class | Class source |
CustomField.php | Class | Class source |
InputDate.php | Class | Class source |
InputFile.php | Class | Class source |
InputText.php | Class | Class source |
LabelField.php | Class | Class source |
RecordField.php | Class | Class source |
RemoteField.php | Class | Class source |
Select.php | Class | Class source |
Textarea.php | Class | Class source |
TextField.php | Class | Class source |
Files | / | FormBuilder |
File | Role | Description |
---|---|---|
FormHeader.php | Class | Class source |
RowsField.php | Class | Class source |
Files | / | res | / | templates |
File | Role | Description |
---|---|---|
creation_form.tpl | Data | Auxiliary data |
creation_form_header.tpl | Data | Auxiliary data |
creation_form_no_header.tpl | Data | Auxiliary data |
updating_form.tpl | Data | Auxiliary data |
updating_form_header.tpl | Data | Auxiliary data |
updating_form_no_header.tpl | Data | Auxiliary data |
Files | / | Tests |
File | Role | Description | ||
---|---|---|---|---|
conf (6 files) | ||||
BootstrapWidgetsUnitTest.php | Class | Class source | ||
CheckboxesFieldUnitTest.php | Class | Class source | ||
CustomFieldUnitTest.php | Class | Class source | ||
FieldsAlgorithmsUnitTest.php | Class | Class source | ||
FieldUnitTest.php | Class | Class source | ||
FormBuilderUnitTest.php | Class | Class source | ||
FormHeaderUnitTest.php | Class | Class source | ||
InputDateUnitTest.php | Class | Class source | ||
InputFileUnitTest.php | Class | Class source | ||
InputTextUnitTest.php | Class | Class source | ||
LabelFieldUnitTest.php | Class | Class source | ||
ListBuilderUnitTest.php | Class | Class source | ||
RecordFieldUnitTest.php | Class | Class source | ||
RemoteFieldUnitTest.php | Class | Class source | ||
RowsFieldUnitTest.php | Class | Class source | ||
SelectUnitTest.php | Class | Class source | ||
TextareaUnitTest.php | Class | Class source | ||
TextFieldUnitTest.php | Class | Class source |
Files | / | Tests | / | conf |
File | Role | Description |
---|---|---|
form-builder-setup.json | Data | Auxiliary data |
has-label-setter.json | Data | Auxiliary data |
layout.json | Data | Auxiliary data |
name-setter.json | Data | Auxiliary data |
required-setter.json | Data | Auxiliary data |
setup.json | Data | Auxiliary data |
Files | / | WidgetsRegistry |
File | Role | Description | ||
---|---|---|---|---|
res (1 directory) | ||||
BootstrapWidgets.php | Class | Class source | ||
WidgetsRegistryBase.php | Class | Class source |
Files | / | WidgetsRegistry | / | res | / | templates |
File | Role | Description |
---|---|---|
list-of-buttons.tpl | Data | Auxiliary data |
listing-actions.tpl | Data | Auxiliary data |
listing-footer.tpl | Data | Auxiliary data |
listing-header-actions.tpl | Data | Auxiliary data |
listing-header-cell.tpl | Data | Auxiliary data |
listing-header.tpl | Data | Auxiliary data |
listing-no-items.tpl | Data | Auxiliary data |
listing-row-cell.tpl | Data | Auxiliary data |
listing-row-centered-cell.tpl | Data | Auxiliary data |
listing-row.tpl | Data | Auxiliary data |
simple-listing-header.tpl | Data | Auxiliary data |
table-cell-start.tpl | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.