![]() |
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) | |
| itemExists ($values) | |
| restartService () | |
| saveItem ($values) | |
| validateInput ($values) | |
| Protected Member Functions inherited from ActionDialogBase | |
| createButtons ($bearsamppWinbinder) | |
| getGaugeDelete () | |
| getGaugeSave () | |
| handleDelete ($window) | |
| handleSave ($window) | |
| initializeDialog ($args) | |
| 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) | |
| 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 ActionAddVhost Handles the creation of a new virtual host (vhost) in the Bearsampp application.
Definition at line 14 of file class.action.addVhost.php.
|
protected |
Create the form fields for the add vhost dialog.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 71 of file class.action.addVhost.php.
References $bearsamppLang, $bearsamppRoot, Lang\BUTTON_BROWSE, Path\formatWindowsPath(), Path\getWwwPath(), Lang\VHOST_DOCUMENT_ROOT_LABEL, Lang\VHOST_EXP_LABEL, and Lang\VHOST_SERVER_NAME_LABEL.
|
protected |
Delete the vhost. Not used in add mode.
Reimplemented from ActionDialogBase.
Definition at line 220 of file class.action.addVhost.php.
|
protected |
Get the delete confirmation message. Not used in add mode.
Reimplemented from ActionDialogBase.
Definition at line 262 of file class.action.addVhost.php.
|
protected |
Get the delete dialog title.
Reimplemented from ActionDialogBase.
Definition at line 58 of file class.action.addVhost.php.
|
protected |
Get the error message after delete failure. Not used in add mode.
Reimplemented from ActionDialogBase.
Definition at line 284 of file class.action.addVhost.php.
|
protected |
Get the success message after delete. Not used in add mode.
Reimplemented from ActionDialogBase.
Definition at line 273 of file class.action.addVhost.php.
|
protected |
Get the dialog title for message boxes.
Reimplemented from ActionDialogBase.
Definition at line 46 of file class.action.addVhost.php.
References $bearsamppLang, and Lang\ADD_VHOST_TITLE.
|
protected |
Get the current form values from the input controls.
| object | $bearsamppWinbinder | The WinBinder instance. |
Reimplemented from ActionDialogBase.
Definition at line 140 of file class.action.addVhost.php.
References WinBinder\CTRL_OBJ.
|
protected |
Get the error message after save failure.
Reimplemented from ActionDialogBase.
Definition at line 250 of file class.action.addVhost.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 233 of file class.action.addVhost.php.
References $bearsamppLang, and Lang\VHOST_CREATED.
|
protected |
Get the dialog window title.
Reimplemented from ActionDialogBase.
Definition at line 34 of file class.action.addVhost.php.
References $bearsamppLang, and Lang\ADD_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 312 of file class.action.addVhost.php.
References $bearsamppLang, WinBinder\CTRL_ID, WinBinder\CTRL_OBJ, Lang\VHOST_DOC_ROOT_PATH, and Lang\VHOST_EXP_LABEL.
|
protected |
Check if a vhost configuration file already exists.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 176 of file class.action.addVhost.php.
References $bearsamppLang, $bearsamppRoot, Path\getVhostsPath(), and Lang\VHOST_ALREADY_EXISTS.
|
protected |
Restart the Apache service after saving.
Reimplemented from ActionDialogBase.
Definition at line 295 of file class.action.addVhost.php.
References $bearsamppBins.
|
protected |
Save the vhost configuration file and create an SSL certificate.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 199 of file class.action.addVhost.php.
References $bearsamppBins, $bearsamppRoot, and Path\getVhostsPath().
|
protected |
Validate the form input.
| array | $values | The form values. |
Reimplemented from ActionDialogBase.
Definition at line 155 of file class.action.addVhost.php.
References $bearsamppLang, Util\isValidDomainName(), and Lang\VHOST_NOT_VALID_DOMAIN.
|
private |
Definition at line 25 of file class.action.addVhost.php.
|
private |
Definition at line 23 of file class.action.addVhost.php.
|
private |
Definition at line 19 of file class.action.addVhost.php.
|
private |
Definition at line 21 of file class.action.addVhost.php.
|
private |
Definition at line 27 of file class.action.addVhost.php.
|
private |
Definition at line 17 of file class.action.addVhost.php.