![]() |
Bearsampp 2026.9.23
|
Protected Member Functions | |
| createFormFields ($bearsamppWinbinder) | |
| deleteItem () | |
| getDeleteConfirmMessage () | |
| getDeleteDialogTitle () | |
| getDeleteErrorMessage () | |
| getDeleteSuccessMessage () | |
| getDialogTitle () | |
| getFormValues ($bearsamppWinbinder) | |
| getSaveErrorMessage () | |
| getSaveSuccessMessage ($values) | |
| getWindowTitle () | |
| handleCustomEvent ($window, $id, $ctrl, $param1, $param2) | |
| initializeDialog ($args) | |
| itemExists ($values) | |
| restartService () | |
| saveItem ($values) | |
| validateInput ($values) | |
| Protected Member Functions inherited from ActionDialogBase | |
| createButtons ($bearsamppWinbinder) | |
| getGaugeDelete () | |
| getGaugeSave () | |
| handleDelete ($window) | |
| handleSave ($window) | |
| isEditMode () | |
Private Attributes | |
| $wbBtnDest | |
| $wbInputDest | |
| $wbInputName | |
| $wbLabelDest | |
| $wbLabelExp | |
| $wbLabelName | |
Additional Inherited Members | |
| Public Member Functions inherited from ActionDialogBase | |
| __construct ($args) | |
| processWindow ($window, $id, $ctrl, $param1, $param2) | |
| Data Fields inherited from ActionDialogBase | |
| const | GAUGE_DELETE = 2 |
| const | GAUGE_SAVE = 2 |
| Protected Attributes inherited from ActionDialogBase | |
| $initValue | |
| $wbBtnCancel | |
| $wbBtnDelete | |
| $wbBtnSave | |
| $wbProgressBar | |
| $wbWindow | |
Class ActionEditAlias Handles the editing of Apache aliases within the Bearsampp application.
Definition at line 14 of file class.action.editAlias.php.
|
protected |
Create the form fields for the edit alias dialog.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 102 of file class.action.editAlias.php.
References $bearsamppBins, $bearsamppLang, $bearsamppRoot, Lang\ALIAS_DEST_LABEL, Lang\ALIAS_EXP_LABEL, Lang\ALIAS_NAME_LABEL, Lang\BUTTON_BROWSE, Path\formatWindowsPath(), and Path\getAliasPath().
|
protected |
Delete the alias configuration file.
Reimplemented from ActionDialogBase.
Definition at line 250 of file class.action.editAlias.php.
References $bearsamppRoot, and Path\getAliasPath().
|
protected |
Get the delete confirmation message.
Reimplemented from ActionDialogBase.
Definition at line 296 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\DELETE_ALIAS.
|
protected |
Get the delete dialog title.
Reimplemented from ActionDialogBase.
Definition at line 58 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\DELETE_ALIAS_TITLE.
|
protected |
Get the error message after delete failure.
Reimplemented from ActionDialogBase.
Definition at line 320 of file class.action.editAlias.php.
References $bearsamppLang, $bearsamppRoot, Lang\ALIAS_REMOVE_ERROR, and Path\getAliasPath().
|
protected |
Get the success message after delete.
Reimplemented from ActionDialogBase.
Definition at line 308 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\ALIAS_REMOVED.
|
protected |
Get the dialog title for message boxes.
Reimplemented from ActionDialogBase.
Definition at line 46 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\ADD_ALIAS_TITLE.
|
protected |
Get the current form values from the input controls.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 175 of file class.action.editAlias.php.
References WinBinder\CTRL_OBJ.
|
protected |
Get the error message after save failure.
Reimplemented from ActionDialogBase.
Definition at line 284 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\ALIAS_CREATED_ERROR.
|
protected |
Get the success message after saving.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 264 of file class.action.editAlias.php.
References $bearsamppBins, $bearsamppLang, and Lang\ALIAS_CREATED.
|
protected |
Get the dialog window title.
Reimplemented from ActionDialogBase.
Definition at line 34 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\EDIT_ALIAS_TITLE.
|
protected |
Handle custom window events (name input change and browse button).
| resource | $window | The window resource. |
| int | $id | The control ID. |
| resource | $ctrl | The control resource. |
| mixed | $param1 | Additional parameter 1. |
| mixed | $param2 | Additional parameter 2. |
Reimplemented from ActionDialogBase.
Definition at line 352 of file class.action.editAlias.php.
References $bearsamppBins, $bearsamppLang, Lang\ALIAS_DEST_PATH, Lang\ALIAS_EXP_LABEL, WinBinder\CTRL_ID, and WinBinder\CTRL_OBJ.
|
protected |
Initialize the dialog by loading the existing alias configuration.
| array | $args | Command line arguments where $args[0] is the alias name. |
Reimplemented from ActionDialogBase.
Definition at line 72 of file class.action.editAlias.php.
References $bearsamppRoot, and Path\getAliasPath().
|
protected |
Check if a different alias with the same name already exists.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 211 of file class.action.editAlias.php.
References $bearsamppLang, $bearsamppRoot, Lang\ALIAS_ALREADY_EXISTS, and Path\getAliasPath().
|
protected |
Restart the Apache service after saving or deleting.
Reimplemented from ActionDialogBase.
Definition at line 335 of file class.action.editAlias.php.
References $bearsamppBins.
|
protected |
Save the alias configuration file.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 235 of file class.action.editAlias.php.
References $bearsamppBins, $bearsamppRoot, and Path\getAliasPath().
|
protected |
Validate the form input.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 190 of file class.action.editAlias.php.
References $bearsamppLang, and Lang\ALIAS_NOT_VALID_ALPHA.
|
private |
Definition at line 25 of file class.action.editAlias.php.
|
private |
Definition at line 23 of file class.action.editAlias.php.
|
private |
Definition at line 19 of file class.action.editAlias.php.
|
private |
Definition at line 21 of file class.action.editAlias.php.
|
private |
Definition at line 27 of file class.action.editAlias.php.
|
private |
Definition at line 17 of file class.action.editAlias.php.