Subversion Repositories PHPX

Rev

Rev 45 | Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 51
Line 1... Line 1...
1
<?php
1
<?php
2
2
-
 
3
namespace PointedEars\PHPX;
-
 
4
3
require_once __DIR__ . '/AbstractModel.php';
5
require_once __DIR__ . '/AbstractModel.php';
4
require_once __DIR__ . '/Registry.php';
6
require_once __DIR__ . '/Registry.php';
5
7
6
/**
8
/**
7
 * Basic application class
9
 * Basic application class
Line 177... Line 179...
177
   * @param string $key
179
   * @param string $key
178
   * @param Database $database
180
   * @param Database $database
179
   * @return string Registry key
181
   * @return string Registry key
180
   * @see Application::setDefaultDatabase()
182
   * @see Application::setDefaultDatabase()
181
   */
183
   */
182
  public function registerDatabase ($key, Database $database)
184
  public function registerDatabase ($key, Db\Database $database)
183
  {
185
  {
184
    Registry::set($key, $database);
186
    Registry::set($key, $database);
185
    return $key;
187
    return $key;
186
  }
188
  }
187
189