You are here

public function hostingService::insert in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 server/hosting_server.service.inc \hostingService::insert()
  2. 7.3 server/hosting_server.service.inc \hostingService::insert()
7 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_example_basic::insert in example/example_service/hosting_example.service.inc
Insert a record into the database.
hostingService_http_cluster::insert in web_cluster/hosting_web_cluster.service.inc

... See full list

5 methods override hostingService::insert()
hostingService_db_mysql::insert in db_server/hosting_db_server.service.inc
hostingService_example_basic::insert in example/example_service/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
hostingService_http_ssl::insert in web_server/ssl/hosting_ssl.service.inc

File

server/hosting_server.service.inc, line 93
Define the base Hosting service class.

Class

hostingService
@file Define the base Hosting service class.

Code

public function insert() {
  $id = db_insert('hosting_service')
    ->fields(array(
    'nid' => $this->server->nid,
    'vid' => $this->server->vid,
    'service' => $this->service,
    'type' => $this->type,
    'port' => $this->port,
    'restart_cmd' => isset($this->restart_cmd) ? $this->restart_cmd : '',
    'available' => $this->available,
  ))
    ->execute();
}