feat(ucp): onglet Notice & Codes de fonction avec fiche PDF imprimable (v2.5.3)
This commit is contained in:
1 parent
2a7bb2a122
commit
d618d426e7
5 files changed
+289
-3
No files matched your search
@@ -744,6 +744,24 @@ class UcpManager
|
||||
return is_file($full) && is_readable($full) ? $full : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne les codes de fonctions téléphoniques actifs pour la notice UCP.
|
||||
*/
|
||||
public static function getFeatureCodesForUser(PDO $db): array
|
||||
{
|
||||
try {
|
||||
$stmt = $db->query('
|
||||
SELECT feature_key, code, default_code, name, category, description
|
||||
FROM feature_codes
|
||||
WHERE enabled = 1
|
||||
ORDER BY id ASC
|
||||
');
|
||||
return $stmt ? $stmt->fetchAll(PDO::FETCH_ASSOC) : [];
|
||||
} catch (\Throwable) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// HELPERS VALIDATION
|
||||
// =========================================================================
|
||||
|
||||
Reference in new issue
Block a user