![]() |
Bearsampp 2026.9.23
|
Data Fields | |
| const | GAUGE_SAVE = 3 |
| Data Fields inherited from ActionDialogBase | |
| const | GAUGE_DELETE = 2 |
| const | GAUGE_SAVE = 2 |
Protected Member Functions | |
| createFormFields ($bearsamppWinbinder) | |
| deleteItem () | |
| getDeleteConfirmMessage () | |
| getDeleteDialogTitle () | |
| getDeleteErrorMessage () | |
| getDeleteSuccessMessage () | |
| getDialogTitle () | |
| getFormValues ($bearsamppWinbinder) | |
| getGaugeSave () | |
| 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 () | |
| handleDelete ($window) | |
| handleSave ($window) | |
| isEditMode () | |
Private Attributes | |
| $wbBtnDocRoot | |
| $wbInputDocRoot | |
| $wbInputServerName | |
| $wbLabelDocRoot | |
| $wbLabelExp | |
| $wbLabelServerName | |
Additional Inherited Members | |
| Public Member Functions inherited from ActionDialogBase | |
| __construct ($args) | |
| processWindow ($window, $id, $ctrl, $param1, $param2) | |
| Protected Attributes inherited from ActionDialogBase | |
| $initValue | |
| $wbBtnCancel | |
| $wbBtnDelete | |
| $wbBtnSave | |
| $wbProgressBar | |
| $wbWindow | |
Class ActionEditVhost Handles the editing of virtual hosts within the Bearsampp application.
Definition at line 15 of file class.action.editVhost.php.
|
protected |
Create the form fields for the edit vhost dialog.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 117 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, Lang\BUTTON_BROWSE, Path\formatWindowsPath(), Path\getVhostsPath(), Lang\VHOST_DOCUMENT_ROOT_LABEL, Lang\VHOST_EXP_LABEL, and Lang\VHOST_SERVER_NAME_LABEL.
|
protected |
Delete the vhost configuration file and its SSL certificate.
Reimplemented from ActionDialogBase.
Definition at line 274 of file class.action.editVhost.php.
References $bearsamppRoot, and Path\getVhostsPath().
|
protected |
Get the delete confirmation message.
Reimplemented from ActionDialogBase.
Definition at line 318 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\DELETE_VHOST.
|
protected |
Get the delete dialog title.
Reimplemented from ActionDialogBase.
Definition at line 72 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\DELETE_VHOST_TITLE.
|
protected |
Get the error message after delete failure.
Reimplemented from ActionDialogBase.
Definition at line 342 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, Path\getVhostsPath(), and Lang\VHOST_REMOVE_ERROR.
|
protected |
Get the success message after delete.
Reimplemented from ActionDialogBase.
Definition at line 330 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_REMOVED.
|
protected |
Get the dialog title for message boxes.
Reimplemented from ActionDialogBase.
Definition at line 60 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\EDIT_VHOST_TITLE.
|
protected |
Get the current form values from the input controls.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 189 of file class.action.editVhost.php.
References WinBinder\CTRL_OBJ.
|
protected |
Get the gauge value for save operation.
Reimplemented from ActionDialogBase.
Definition at line 38 of file class.action.editVhost.php.
|
protected |
Get the error message after save failure.
Reimplemented from ActionDialogBase.
Definition at line 306 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_CREATED_ERROR.
|
protected |
Get the success message after saving.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 289 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_CREATED.
|
protected |
Get the dialog window title.
Reimplemented from ActionDialogBase.
Definition at line 48 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\EDIT_VHOST_TITLE.
|
protected |
Handle custom window events (server 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 374 of file class.action.editVhost.php.
References $bearsamppLang, WinBinder\CTRL_ID, WinBinder\CTRL_OBJ, Lang\VHOST_DOC_ROOT_PATH, and Lang\VHOST_EXP_LABEL.
|
protected |
Initialize the dialog by loading the existing vhost configuration.
| array | $args | Command line arguments where $args[0] is the server name. |
Reimplemented from ActionDialogBase.
Definition at line 86 of file class.action.editVhost.php.
References $bearsamppRoot, and Path\getVhostsPath().
|
protected |
Check if a different vhost with the same server name already exists.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 225 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, Path\getVhostsPath(), and Lang\VHOST_ALREADY_EXISTS.
|
protected |
Restart the Apache service after saving or deleting.
Reimplemented from ActionDialogBase.
Definition at line 357 of file class.action.editVhost.php.
References $bearsamppBins.
|
protected |
Save the vhost configuration file, removing old config and certificate first.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 249 of file class.action.editVhost.php.
References $bearsamppBins, $bearsamppRoot, and Path\getVhostsPath().
|
protected |
Validate the form input.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 204 of file class.action.editVhost.php.
References $bearsamppLang, Util\isValidDomainName(), and Lang\VHOST_NOT_VALID_DOMAIN.
|
private |
Definition at line 26 of file class.action.editVhost.php.
|
private |
Definition at line 24 of file class.action.editVhost.php.
|
private |
Definition at line 20 of file class.action.editVhost.php.
|
private |
Definition at line 22 of file class.action.editVhost.php.
|
private |
Definition at line 28 of file class.action.editVhost.php.
|
private |
Definition at line 18 of file class.action.editVhost.php.
| const GAUGE_SAVE = 3 |
Definition at line 31 of file class.action.editVhost.php.