You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
540 B
PHTML
23 lines
540 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
namespace DataAccess\Settings;
|
||
|
|
||
|
|
||
|
use DataAccess\CommonDao;
|
||
|
|
||
|
class ModsForHeskSettingsGateway extends CommonDao {
|
||
|
function getAllSettings($heskSettings) {
|
||
|
$this->init();
|
||
|
|
||
|
$rs = hesk_dbQuery("SELECT `Key`, `Value` FROM `" . hesk_dbEscape($heskSettings['db_pfix']) . "settings` WHERE `Key` <> 'modsForHeskVersion'");
|
||
|
|
||
|
$settings = array();
|
||
|
while ($row = hesk_dbFetchAssoc($rs)) {
|
||
|
$settings[$row['Key']] = $row['Value'];
|
||
|
}
|
||
|
|
||
|
$this->close();
|
||
|
|
||
|
return $settings;
|
||
|
}
|
||
|
}
|