You are here

public function hostingService::insert in Hostmaster (Aegir) 6

8 calls to hostingService::insert()
hostingService::update in modules/hosting/server/hosting_server.service.inc
hostingService_db_mysql::insert in modules/hosting/db_server/hosting_db_server.service.inc
hostingService_db_mysql::update in modules/hosting/db_server/hosting_db_server.service.inc
hostingService_dns_master::insert in modules/hosting/dns/hosting_dns.service.inc
hostingService_example_basic::insert in modules/hosting/example/hosting_example.service.inc
Insert a record into the database.

... See full list

6 methods override hostingService::insert()
hostingService_db_mysql::insert in modules/hosting/db_server/hosting_db_server.service.inc
hostingService_dns_master::insert in modules/hosting/dns/hosting_dns.service.inc
hostingService_example_basic::insert in modules/hosting/example/hosting_example.service.inc
Insert a record into the database.
hostingService_http_cluster::insert in modules/hosting/web_cluster/hosting_web_cluster.service.inc
hostingService_http_pack::insert in modules/hosting/web_pack/hosting_web_pack.service.inc

... See full list

File

modules/hosting/server/hosting_server.service.inc, line 55

Class

hostingService

Code

public function insert() {
  db_query("INSERT INTO {hosting_service} (nid, vid, service, type, port, restart_cmd, available) VALUES (%d, %d, '%s', '%s', %d, '%s', %d)", $this->server->nid, $this->server->vid, $this->service, $this->type, $this->port, $this->restart_cmd, $this->available);
}