~registry/webmasterkit/development

« back to all changes in this revision

Viewing changes to database/wk.lib.mysql.php

  • Committer: Pietro Albini
  • Date: 2013-03-29 08:37:36 UTC
  • Revision ID: pietro98.albini@gmail.com-20130329083736-tg4sd5tx9h9eyb3j
Start to implement wkDatabase module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * @name        wk.database.mysql
 
4
 * @version     0.1
 
5
 * @description Mysql tools - Database handler for WebmasterKit
 
6
 * @author      Pietro Albini <pietro98.albini@gmail.com>
 
7
 * @license     GNU-LGPL v3
 
8
 */
 
9
defined("WEBMASTERKIT") or die("Restricted access");
 
10
 
 
11
class wkDatabaseMysql implements wkDatabaseBase
 
12
{
 
13
        public function GetDSN($args)
 
14
        {
 
15
                $cstring = "mysql:dbname={$args[1]};host={$args[0]}";
 
16
                return $cstring;
 
17
        }
 
18
}
 
19
?>