Upgrade to 3.2.5

This commit is contained in:
Bastian Allgeier
2019-09-24 11:00:59 +02:00
parent ff9b5b1861
commit 447a9dd266
234 changed files with 1990 additions and 1224 deletions

View File

@@ -36,7 +36,7 @@ class Db
* (Re)connect the database
*
* @param array $params Pass [] to use the default params from the config
* @return Kirby\Database\Database
* @return \Kirby\Database\Database
*/
public static function connect(array $params = null)
{
@@ -61,7 +61,7 @@ class Db
/**
* Returns the current database connection
*
* @return Kirby\Database\Database
* @return \Kirby\Database\Database
*/
public static function connection()
{
@@ -74,7 +74,7 @@ class Db
* that table.
*
* @param string $table
* @return Kirby\Database\Query
* @return \Kirby\Database\Query
*/
public static function table($table)
{
@@ -177,12 +177,12 @@ Db::$queries['column'] = function (string $table, string $column, $where = null,
};
/**
* Shortcut for inserting a new row into a table
*
* @param string $table The name of the table, which should be queried
* @param array $values An array of values, which should be inserted
* @return boolean
*/
* Shortcut for inserting a new row into a table
*
* @param string $table The name of the table, which should be queried
* @param array $values An array of values, which should be inserted
* @return bool
*/
Db::$queries['insert'] = function (string $table, array $values) {
return Db::table($table)->insert($values);
};
@@ -193,7 +193,7 @@ Db::$queries['insert'] = function (string $table, array $values) {
* @param string $table The name of the table, which should be queried
* @param array $values An array of values, which should be inserted
* @param mixed $where An optional where clause
* @return boolean
* @return bool
*/
Db::$queries['update'] = function (string $table, array $values, $where = null) {
return Db::table($table)->where($where)->update($values);
@@ -204,7 +204,7 @@ Db::$queries['update'] = function (string $table, array $values, $where = null)
*
* @param string $table The name of the table, which should be queried
* @param mixed $where An optional where clause
* @return boolean
* @return bool
*/
Db::$queries['delete'] = function (string $table, $where = null) {
return Db::table($table)->where($where)->delete();