20250810 v1.0

This commit is contained in:
2025-08-10 11:48:29 +03:00
parent d2077fbc76
commit 3dc403ebf2
11 changed files with 426 additions and 19 deletions

View File

@@ -67,14 +67,14 @@
* Получает набор строк в массиве данных, удовлетворяющий выборке.
*
* @param string $table Имя таблицы.
* @param ConditionBuilder $where Where-условия выборки.
* @param array $columns Колонки, которые нужно включить в запрос.
* @param ConditionBuilder $where Where-условия выборки.
* @param string $className Полное имя класса, реализуемого интерфейсом IDBItem.
*
* @return false|ObjectArray Массив найденных классов или <code>false</code> в случае ошибки.
*/
public
function GetRows (string $table, ConditionBuilder $where, array $columns = [],
function GetRows (string $table, array $columns = [], ConditionBuilder $where = new ConditionBuilder(),
string $className = "\\StdClass"): false|ObjectArray
{
// Задаю массив параметров
@@ -124,7 +124,7 @@
* @see Query
*/
public
function GetCol (string $table, string $column, ConditionBuilder $where): false|array
function GetCol (string $table, string $column, ConditionBuilder $where = new ConditionBuilder()): false|array
{
/**
* Интерпретирую условия.