⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
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
/
Core
/
Factory
/
View File Name :
BlockCollection.php
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 */ /** * A Horde_Injector:: based factory for creating Horde_Core_Block_Collection * objects. * * Copyright 2011-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @category Horde * @package Core * @author Michael Slusarz
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 */ class Horde_Core_Factory_BlockCollection extends Horde_Core_Factory_Base { /** * Instances. * * @var array */ private $_instances = array(); /** * Return the Block_Collection instance. * * @param array $apps The applications whose blocks to list. * @param string $layout The preference name for the layout * configuration. * * @return Horde_Core_Block_Collection The singleton instance. * @throws Horde_Exception */ public function create(array $apps = array(), $layout = 'portal_layout') { global $registry; $apps = empty($apps) ? $registry->listApps() : array_intersect($registry->listApps(), $apps); sort($apps); $sig = hash('md5', json_encode(array($apps, $layout))); if (!isset($this->_instances[$sig])) { $this->_instances[$sig] = new Horde_Core_Block_Collection($apps, $layout); } return $this->_instances[$sig]; } }