$statement = $this->database->prepareStatement($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
+ /** @noinspection PhpVariableVariableInspection */
${$row['type']}[] = $row['id'];
}
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
+ /** @noinspection PhpVariableVariableInspection */
$$config_name = $row['config_value'];
}
}
$statement = $this->database->prepareStatement($sql);
$statement->execute(['upload_path']);
while ($row = $statement->fetchArray()) {
+ /** @noinspection PhpVariableVariableInspection */
$$row['config_name'] = $row['config_value'];
}
}
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
+ /** @noinspection PhpVariableVariableInspection */
$$config_name = $row['config_value'];
}
}
$statement = $this->database->prepareStatement($sql);
$statement->execute(['upload_path']);
while ($row = $statement->fetchArray()) {
+ /** @noinspection PhpVariableVariableInspection */
$$row['config_name'] = $row['config_value'];
}
}
$statement = $this->database->prepareStatement($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
+ /** @noinspection PhpVariableVariableInspection */
${$row['type']}[] = $row;
}