You are here

function hostingService_db_mysql::view in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 db_server/hosting_db_server.service.inc \hostingService_db_mysql::view()
  2. 7.4 db_server/hosting_db_server.service.inc \hostingService_db_mysql::view()

Overrides hostingService::view

File

db_server/hosting_db_server.service.inc, line 94
Provide the hosting serivce classes for database integration.

Class

hostingService_db_mysql
A MySQL specific db service implementation class.

Code

function view(&$render) {
  parent::view($render);
  $render['db_user'] = array(
    '#type' => 'item',
    '#title' => t('Database user'),
    '#markup' => filter_xss($this->db_user),
    '#weight' => 1,
  );
  if (empty($this->db_passwd)) {
    $markup = t('None');
  }
  else {
    $markup = t('Saved');
  }
  $render['db_passwd'] = array(
    '#type' => 'item',
    '#title' => t('Database password'),
    '#markup' => $markup,
    '#weight' => 2,
  );
}