41 if ( isset( $args[0] ) && !empty( $args[0] ) ) {
44 $this->cntProcessActions = 3;
48 $this->cntProcessActions = 3;
53 $this->cntProcessActions = 3;
55 elseif ( $args[0] ==
$bearsamppBins->getPostgresql()->getName() ) {
58 $this->cntProcessActions = 3;
63 $this->cntProcessActions = 3;
68 $this->cntProcessActions = 3;
72 $this->cntProcessActions = 3;
77 $this->cntProcessActions = 3;
80 $bearsamppWinbinder->reset();
83 $this->wbLabelCurrent = $bearsamppWinbinder->createLabel(
89 $this->wbInputPort = $bearsamppWinbinder->createInputText( $this->wbWindow, $this->currentPort, 105, 43, 50,
null, 5, WBC_NUMBER );
91 $this->wbProgressBar = $bearsamppWinbinder->createProgressBar( $this->wbWindow, $this->cntProcessActions + 1, 15, 107, 170 );
95 $bearsamppWinbinder->setHandler( $this->wbWindow, $this,
'processWindow' );
97 $bearsamppWinbinder->mainLoop();
98 $bearsamppWinbinder->reset();
122 $bearsamppWinbinder->incrProgressBar( $this->wbProgressBar );
123 if (
$port == $this->currentPort ) {
125 $bearsamppWinbinder->resetProgressBar( $this->wbProgressBar );
128 $changePort = $this->bin->changePort(
$port,
true, $this->wbProgressBar );
129 if ( $changePort ===
true ) {
130 $this->bin->getService()->restart();
132 $bearsamppWinbinder->messageBoxInfo(
136 $bearsamppWinbinder->destroyWindow( $window );
139 $bearsamppWinbinder->messageBoxError(
143 $bearsamppWinbinder->resetProgressBar( $this->wbProgressBar );
148 $bearsamppWinbinder->destroyWindow( $window );