Свойство | Тип | Описание | |
---|---|---|---|
$selected_forms | |||
$templatePath |
Свойство | Тип | Описание | |
---|---|---|---|
$form_rendered | |||
$module_name | |||
$nav_tabs | |||
$temp_dir |
Метод | Описание | |
---|---|---|
SearchandReplace ( string $dir, string $stringsearch, string $stringreplace ) : array | Recursively replace all occurences of string within a directory | |
Zip ( $source, $destination, boolean $include_dir = true ) : boolean | Compresses a folder | |
__construct ( ) | ||
createModule ( $input ) | ||
generateForm ( $form ) : string | Generate the complete form | |
getCaptchaField ( integer $form ) | Get captcha to add to form if captcha option is selected | |
getFormFields ( $form_data ) : array | Get the available form fields from the generated form | |
getFormSelects ( $form_id ) : array | Get all the select/dropdown fields in a form | |
setFormDropdownSources ( $input ) : string |
Метод | Описание | |
---|---|---|
adjustFiles ( $input ) | Adjust the template files according to the provided input | |
copyTemplate ( ) | Copy the module template to a temporary directory | |
generateHashForNullHashModules ( ) | ||
generateInnerForm ( ) | Generate the inner portion form based on the input | |
generateModelName ( $table_name ) : mixed | Generate model name from the table name specified | |
generateModuleAlias ( $module_name ) : mixed | Generate the alias of the module | |
generateModules ( ) | Generate modules for each form tables | |
generateRoutes ( array $targets ) : string | ||
generateTableName ( $module_name, $form_name ) : string | Generate table name, for the selected module and form | |
generateZip ( $module_alias ) : string | Generate a zip file of the module | |
getFormInfo ( $index ) | Get the information about the form | |
getRequiredModulesInfo ( $input ) | ||
getSelectedForms ( $input ) | Get all the forms that were selected | |
saveModuleConfig ( $input, $module_alias, $requires ) | Save the module configuration to a json file |
public generateForm ( $form ) : string | ||
$form | ||
Результат | string |
public getCaptchaField ( integer $form ) | ||
$form | integer |
public getFormFields ( $form_data ) : array | ||
$form_data | ||
Результат | array |
public getFormSelects ( $form_id ) : array | ||
$form_id | ||
Результат | array |
public setFormDropdownSources ( $input ) : string | ||
$input | ||
Результат | string |