a13f7ca6a6
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Auto Version Bump / Version Bump (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Update all references in Makefile, manifest.xml, .gitignore, and CI workflows (ci-joomla, pr-check, repo-health) to use source/ as the primary directory with src/ as a fallback for compatibility. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @package MokoJoomBackup
|
|
* @subpackage com_mokobackup
|
|
* @author Moko Consulting <hello@mokoconsulting.tech>
|
|
* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved.
|
|
* @license GNU General Public License version 3 or later; see LICENSE
|
|
*/
|
|
|
|
namespace Joomla\Component\MokoBackup\Administrator\View\Dashboard;
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
|
|
use Joomla\CMS\Toolbar\ToolbarHelper;
|
|
|
|
class HtmlView extends BaseHtmlView
|
|
{
|
|
public ?object $lastBackup = null;
|
|
public ?object $nextScheduled = null;
|
|
public object $stats;
|
|
public array $systemHealth = [];
|
|
public array $profiles = [];
|
|
public bool $defaultDirWarning = false;
|
|
|
|
public function display($tpl = null): void
|
|
{
|
|
/** @var \Joomla\Component\MokoBackup\Administrator\Model\DashboardModel $model */
|
|
$model = $this->getModel();
|
|
|
|
$this->lastBackup = $model->getLastBackup();
|
|
$this->nextScheduled = $model->getNextScheduled();
|
|
$this->stats = $model->getStats();
|
|
$this->systemHealth = $model->getSystemHealth();
|
|
$this->profiles = $model->getProfiles();
|
|
$this->defaultDirWarning = $model->isUsingDefaultBackupDir();
|
|
|
|
$this->addToolbar();
|
|
|
|
parent::display($tpl);
|
|
}
|
|
|
|
protected function addToolbar(): void
|
|
{
|
|
ToolbarHelper::title(Text::_('COM_MOKOBACKUP_DASHBOARD_TITLE'), 'archive');
|
|
ToolbarHelper::preferences('com_mokobackup');
|
|
}
|
|
}
|