}
/**
- * @brief Select rows from the attach table
+ * @brief Select rows from the attach table and return them as array
*
* @param array $fields Array of selected fields, empty for all
* @param array $conditions Array of fields for conditions
* @return boolean|array
*
* @throws \Exception
- * @see \Friendica\Database\DBA::select
+ * @see \Friendica\Database\DBA::selectToArray
*/
- public static function select(array $fields = [], array $conditions = [], array $params = [])
+ public static function selectToArray(array $fields = [], array $conditions = [], array $params = [])
{
if (empty($fields)) {
$fields = self::getFields();
{
if (!is_null($img)) {
// get items to update
- $items = self::select(['backend-class','backend-ref'], $conditions);
+ $items = self::selectToArray(['backend-class','backend-ref'], $conditions);
foreach($items as $item) {
/** @var IStorage $backend_class */
public static function delete(array $conditions, array $options = [])
{
// get items to delete data info
- $items = self::select(['backend-class','backend-ref'], $conditions);
+ $items = self::selectToArray(['backend-class','backend-ref'], $conditions);
foreach($items as $item) {
/** @var IStorage $backend_class */