- Add cached frontend methods to existing Domain repositories (allSettings, getSingleValue, defaultLanguage, activeLanguages, translations) - Convert front\factory\Settings and Languages to facades delegating to Domain repositories - Fix get_single_settings_value() - was hardcoded to 'firm_name', now uses $param correctly - Add CacheHandler stub methods (get/set/exists) to test bootstrap - Establish architectural rule: Domain classes are shared between admin and frontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
522 B
PHP
23 lines
522 B
PHP
<?php
|
|
namespace front\factory;
|
|
|
|
/**
|
|
* Fasada delegujaca do Domain\Settings\SettingsRepository.
|
|
*/
|
|
class Settings
|
|
{
|
|
public static function settings_details($admin = false)
|
|
{
|
|
global $mdb;
|
|
$repo = new \Domain\Settings\SettingsRepository($mdb);
|
|
return $repo->allSettings($admin);
|
|
}
|
|
|
|
public static function get_single_settings_value($param)
|
|
{
|
|
global $mdb;
|
|
$repo = new \Domain\Settings\SettingsRepository($mdb);
|
|
return $repo->getSingleValue($param);
|
|
}
|
|
}
|