You are here

function hostingService_db_mysql::insert in Hosting 7.3

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

Overrides hostingService::insert

File

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

Class

hostingService_db_mysql
A MySQL specific db service implementation class.

Code

function insert() {
  parent::insert();
  $id = db_insert('hosting_db_server')
    ->fields(array(
    'vid' => $this->server->vid,
    'nid' => $this->server->nid,
    'db_user' => $this->db_user,
    'db_passwd' => $this->db_passwd,
  ))
    ->execute();
}