Fix the test data / unused function removed

This commit is contained in:
Michael 2021-01-17 22:20:46 +00:00
parent 270d1aeb41
commit ff8b578cde
2 changed files with 44 additions and 67 deletions

View file

@ -370,31 +370,6 @@ class Item
return $retval;
}
/**
* Retrieve a single record from the item table and returns it in an associative array
*
* @param array $fields
* @param array $condition
* @param array $params
* @return bool|array
* @throws \Exception
* @see DBA::select
*/
public static function selectFirst(array $fields = [], array $condition = [], $params = [])
{
$params['limit'] = 1;
$result = self::select($fields, $condition, $params);
if (is_bool($result)) {
return $result;
} else {
$row = self::fetch($result);
DBA::close($result);
return $row;
}
}
/**
* Select rows from the item table and returns them as an array
*