Phase 4 complete: - AuthorsRepository: simpleList, authorDetails, authorSave, authorDelete, authorByLang - NewsletterRepository: 14 methods — subscriber lifecycle, templates, sending - 4 legacy factories converted to thin wrappers - Globals ($settings, $lang) passed as explicit params to repo methods Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
254 B
PHP
12 lines
254 B
PHP
<?php
|
|
namespace front\factory;
|
|
class Authors
|
|
{
|
|
// szczególy autora
|
|
static public function get_single_author( $id_author )
|
|
{
|
|
global $mdb;
|
|
$repo = new \Domain\Authors\AuthorsRepository($mdb);
|
|
return $repo->authorByLang($id_author);
|
|
}
|
|
} |