|
Bearsampp 2026.3.26
API documentation
|
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 form fields specific to the dialog This method should create all input fields, labels, and buttons
| object | $bearsamppWinbinder | The WinBinder instance |
Reimplemented from ActionDialogBase.
Definition at line 72 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, Lang\BUTTON_BROWSE, Util\formatWindowsPath(), Lang\VHOST_DOCUMENT_ROOT_LABEL, Lang\VHOST_EXP_LABEL, and Lang\VHOST_SERVER_NAME_LABEL.
|
protected |
Delete the item
Reimplemented from ActionDialogBase.
Definition at line 174 of file class.action.editVhost.php.
References $bearsamppRoot.
|
protected |
Get delete confirmation message
Reimplemented from ActionDialogBase.
Definition at line 199 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\DELETE_VHOST.
|
protected |
Get the delete dialog title
Reimplemented from ActionDialogBase.
Definition at line 43 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\DELETE_VHOST_TITLE.
|
protected |
Get error message after delete failure
Reimplemented from ActionDialogBase.
Definition at line 211 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, and Lang\VHOST_REMOVE_ERROR.
|
protected |
Get success message after delete
Reimplemented from ActionDialogBase.
Definition at line 205 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_REMOVED.
|
protected |
Get the dialog title for messages
Reimplemented from ActionDialogBase.
Definition at line 37 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\EDIT_VHOST_TITLE.
|
protected |
Get the current form values
| object | $bearsamppWinbinder | The WinBinder instance |
Reimplemented from ActionDialogBase.
Definition at line 116 of file class.action.editVhost.php.
References WinBinder\CTRL_OBJ.
|
protected |
Get the gauge value for save operation (can be overridden)
Reimplemented from ActionDialogBase.
Definition at line 26 of file class.action.editVhost.php.
|
protected |
Get error message after save failure
Reimplemented from ActionDialogBase.
Definition at line 193 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_CREATED_ERROR.
|
protected |
Get success message after save
| array | $values | The form values |
Reimplemented from ActionDialogBase.
Definition at line 182 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\VHOST_CREATED.
|
protected |
Get the dialog window title
Reimplemented from ActionDialogBase.
Definition at line 31 of file class.action.editVhost.php.
References $bearsamppLang, and Lang\EDIT_VHOST_TITLE.
|
protected |
Handle custom events (can be overridden by child classes)
| 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 226 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 window
| array | $args | Command line arguments |
Reimplemented from ActionDialogBase.
Definition at line 49 of file class.action.editVhost.php.
References $bearsamppRoot.
|
protected |
Check if the item already exists (for add/edit operations)
| array | $values | The form values |
Reimplemented from ActionDialogBase.
Definition at line 138 of file class.action.editVhost.php.
References $bearsamppLang, $bearsamppRoot, and Lang\VHOST_ALREADY_EXISTS.
|
protected |
Restart the service after save/delete
Reimplemented from ActionDialogBase.
Definition at line 220 of file class.action.editVhost.php.
References $bearsamppBins.
|
protected |
Save the item (create or update)
| array | $values | The form values |
Reimplemented from ActionDialogBase.
Definition at line 154 of file class.action.editVhost.php.
References $bearsamppBins, and $bearsamppRoot.
|
protected |
Validate the form input
| array | $values | The form values |
Reimplemented from ActionDialogBase.
Definition at line 124 of file class.action.editVhost.php.
References $bearsamppLang, Util\isValidDomainName(), and Lang\VHOST_NOT_VALID_DOMAIN.
|
private |
Definition at line 21 of file class.action.editVhost.php.
|
private |
Definition at line 20 of file class.action.editVhost.php.
|
private |
Definition at line 18 of file class.action.editVhost.php.
|
private |
Definition at line 19 of file class.action.editVhost.php.
|
private |
Definition at line 22 of file class.action.editVhost.php.
|
private |
Definition at line 17 of file class.action.editVhost.php.
| const GAUGE_SAVE = 3 |
Definition at line 24 of file class.action.editVhost.php.