public function hostingService_db_mysql::context_options in Hostmaster (Aegir) 6
Overrides hostingService::context_options
File
- modules/
hosting/ db_server/ hosting_db_server.service.inc, line 94 - Provide the hosting serivce classes for database integration.
Class
- hostingService_db_mysql
- A MySQL specific db service implementation class.
Code
public function context_options($task_type, $ref_type, &$task) {
parent::context_options($task_type, $ref_type, $task);
// Provide context_options for verification and writing out to an alias
$task->context_options['master_db'] = 'mysql' . '://' . urlencode($this->db_user) . ':' . urlencode($this->db_passwd) . '@' . $this->server->title;
}