public function hostingService::insert

7.x-3.x hosting_server.service.inc public hostingService::insert()

File

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

Class

hostingService

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();
}