Property | Type | Description | |
---|---|---|---|
$selected_forms | |||
$templatePath |
Property | Type | Description | |
---|---|---|---|
$form_rendered | |||
$module_name | |||
$nav_tabs | |||
$temp_dir |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 | ||
return | string |
public getCaptchaField ( integer $form ) | ||
$form | integer |
public getFormFields ( $form_data ) : array | ||
$form_data | ||
return | array |
public getFormSelects ( $form_id ) : array | ||
$form_id | ||
return | array |
public setFormDropdownSources ( $input ) : string | ||
$input | ||
return | string |