public function hostingService::insert in Hosting 6.2
Same name and namespace in other branches
- 7.4 server/hosting_server.service.inc \hostingService::insert()
- 7.3 server/hosting_server.service.inc \hostingService::insert()
8 calls to hostingService::insert()
- hostingService::update in server/
hosting_server.service.inc - hostingService_db_mysql::insert in db_server/
hosting_db_server.service.inc - hostingService_db_mysql::update in db_server/
hosting_db_server.service.inc - hostingService_dns_master::insert in dns/
hosting_dns.service.inc - hostingService_example_basic::insert in example/
hosting_example.service.inc - Insert a record into the database.
6 methods override hostingService::insert()
- hostingService_db_mysql::insert in db_server/
hosting_db_server.service.inc - hostingService_dns_master::insert in dns/
hosting_dns.service.inc - hostingService_example_basic::insert in example/
hosting_example.service.inc - Insert a record into the database.
- hostingService_http_cluster::insert in web_cluster/
hosting_web_cluster.service.inc - hostingService_http_pack::insert in web_pack/
hosting_web_pack.service.inc
File
- server/
hosting_server.service.inc, line 55
Class
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);
}