Exemplo n.º 1
0
 /**
  * @param ITextInterface                        $Status
  * @param array                                 $Service
  * @param array                                 $Parameter
  * @param \SPHERE\System\Database\Database|null $Connection
  *
  * @return TableRow
  */
 private function statusRow(ITextInterface $Status, $Service, $Parameter, \SPHERE\System\Database\Database $Connection = null)
 {
     return new TableRow(array(new TableColumn($Status), new TableColumn($Service[0]), new TableColumn($Service[1]), new TableColumn(isset($Service[2]) ? $Service[2] : null), new TableColumn(isset($Service[3]) ? $Service[3] : null), new TableColumn(isset($Service[4]) ? $Service[4] : null), new TableColumn($Parameter['Driver']), new TableColumn($Parameter['Host']), new TableColumn(isset($Parameter['Port']) ? $Parameter['Port'] : 'Default'), new TableColumn(isset($Connection) ? $Connection->getDatabase() : '-NA-')));
 }
Exemplo n.º 2
0
 /**
  * @param bool $Simulate
  *
  * @return string
  */
 public function getProtocol($Simulate = false)
 {
     return $this->Database->getProtocol($Simulate);
 }