refactor articles_archive to DI controller and table-list

This commit is contained in:
2026-02-12 23:53:05 +01:00
parent 0d4e175b1a
commit 6832009020
16 changed files with 600 additions and 199 deletions

View File

@@ -1,26 +0,0 @@
<?php
namespace admin\controls;
class ArticlesArchive
{
public static function article_restore()
{
if ( \admin\factory\ArticlesArchive::article_restore( \S::get( 'id' ) ) )
\S::alert( 'Artykuł został przywrócony.' );
header( 'Location: /admin/articles_archive/view_list/' );
exit;
}
public static function article_delete()
{
if ( \admin\factory\ArticlesArchive::article_delete( \S::get( 'id' ) ) )
\S::alert( 'Artykuł został usunięty.' );
header( 'Location: /admin/articles_archive/view_list/' );
exit;
}
public static function view_list()
{
return \admin\view\ArticlesArchive::articles_list();
}
}