Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -7,6 +7,12 @@ use Kirby\Toolkit\Config;
/**
* Database shortcuts
*
* @package Kirby Database
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://opensource.org/licenses/MIT
*/
class Db
{
@@ -30,7 +36,7 @@ class Db
* (Re)connect the database
*
* @param array $params Pass [] to use the default params from the config
* @return Database
* @return Kirby\Database\Database
*/
public static function connect(array $params = null)
{
@@ -55,7 +61,7 @@ class Db
/**
* Returns the current database connection
*
* @return Database
* @return Kirby\Database\Database
*/
public static function connection()
{
@@ -63,10 +69,12 @@ class Db
}
/**
* Sets the current table, which should be queried
* Sets the current table, which should be queried. Returns a
* Query object, which can be used to build a full query for
* that table.
*
* @param string $table
* @return Query Returns a Query object, which can be used to build a full query for that table
* @return Kirby\Database\Query
*/
public static function table($table)
{