⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Backup
/
Edit File: Collection.php
<?php /** * Copyright 2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (BSD). If you * did not receive this file, see http://www.horde.org/licenses/bsd. * * @author Jan Schneider <jan@horde.org> * @category Horde * @license http://www.horde.org/licenses/bsd BSD * @package Backup */ namespace Horde\Backup; use IteratorIterator; use Traversable; /** * A collection of backup objects of a certain application-specific type. * * Each application should extend this class for each type of backup data it * supports. * * @author Jan Schneider <jan@horde.org> * @category Horde * @copyright 2017 Horde LLC * @license http://www.horde.org/licenses/bsd BSD * @package Backup */ class Collection extends IteratorIterator { /** * The collection's user. * * @var string */ protected $_user; /** * The collection's type. * * @var string */ protected $_type; /** * Constructor. * * @param Traversable $data The backup data. * @param string $user A user name. * @param string $type A collection type like "calendar" or "contact". */ public function __construct(Traversable $data, $user, $type) { parent::__construct($data); $this->_user = $user; $this->_type = $type; } /** * Returns this collection's user. * * @return string The collection user. */ public function getUser() { return $this->_user; } /** * Returns the type of objects or resources that this collection holds. * * @return string The collection type. */ public function getType() { return $this->_type; } }
Simpan