2026-06-02 13:47:36 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2026-06-11 12:24:27 -05:00
|
|
|
* @package MokoSuiteBackup
|
|
|
|
|
* @subpackage com_mokosuitebackup
|
2026-06-02 13:47:36 -05:00
|
|
|
* @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
|
|
|
|
|
*/
|
|
|
|
|
|
2026-06-11 12:24:27 -05:00
|
|
|
namespace Joomla\Component\MokoSuiteBackup\Api\View\Backups;
|
2026-06-02 13:47:36 -05:00
|
|
|
|
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
|
|
|
|
|
|
use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
|
|
|
|
|
|
|
|
|
|
class JsonapiView extends BaseApiView
|
|
|
|
|
{
|
|
|
|
|
protected $fieldsToRenderItem = [
|
|
|
|
|
'id',
|
|
|
|
|
'profile_id',
|
|
|
|
|
'description',
|
|
|
|
|
'status',
|
|
|
|
|
'origin',
|
|
|
|
|
'backup_type',
|
|
|
|
|
'archivename',
|
|
|
|
|
'total_size',
|
|
|
|
|
'db_size',
|
|
|
|
|
'files_count',
|
|
|
|
|
'tables_count',
|
|
|
|
|
'multipart',
|
|
|
|
|
'tag',
|
|
|
|
|
'backupstart',
|
|
|
|
|
'backupend',
|
|
|
|
|
'filesexist',
|
|
|
|
|
'remote_filename',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $fieldsToRenderList = [
|
|
|
|
|
'id',
|
|
|
|
|
'profile_id',
|
|
|
|
|
'description',
|
|
|
|
|
'status',
|
|
|
|
|
'origin',
|
|
|
|
|
'backup_type',
|
|
|
|
|
'archivename',
|
|
|
|
|
'total_size',
|
|
|
|
|
'backupstart',
|
|
|
|
|
'backupend',
|
|
|
|
|
'filesexist',
|
|
|
|
|
];
|
|
|
|
|
}
|