public function hostingService_db_mysql::context_options in Hosting 6.2
Same name and namespace in other branches
- 7.4 db_server/hosting_db_server.service.inc \hostingService_db_mysql::context_options()
- 7.3 db_server/hosting_db_server.service.inc \hostingService_db_mysql::context_options()
Overrides hostingService::context_options
File
- 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;
}