54 lines
982 B
PHP
54 lines
982 B
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\Api\View\Backups;
|
||
|
|
|
||
|
|
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',
|
||
|
|
'absolute_path',
|
||
|
|
'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',
|
||
|
|
];
|
||
|
|
}
|