You are here

function hostingService_db_mysql::insert in Hostmaster (Aegir) 6

Overrides hostingService::insert

File

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

Class

hostingService_db_mysql
A MySQL specific db service implementation class.

Code

function insert() {
  parent::insert();
  db_query("INSERT INTO {hosting_db_server} (vid, nid, db_user, db_passwd) \n      VALUES (%d, %d, '%s', '%s')", $this->server->vid, $this->server->nid, $this->db_user, $this->db_passwd);
}