⚝
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 :
Base.php
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 */ /** * The abstract Horde factory class. * * This class is used for factories that are intended to have their create() * methods manually called by code. * * 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_Base { /** * The injector. * * @var Horde_Injector */ protected $_injector; /** * Constructor. * * @param Horde_Injector $injector The injector to use. */ public function __construct(Horde_Injector $injector) { $this->_injector = $injector; } /** * Return the classname of the driver to load. * * @param string $driver Driver name. * @param string $base The base classname. * * @return string Classname. * @throws Horde_Exception */ protected function _getDriverName($driver, $base) { /* Intelligent loading... if we see at least one separator character * in the driver name, guess that this is a full classname so try that * option first. */ $search = (strpbrk($driver, '\\_') === false) ? array('driver', 'class') : array('class', 'driver'); foreach ($search as $val) { switch ($val) { case 'class': if (class_exists($driver)) { return $driver; } break; case 'driver': $class = $base . '_' . Horde_String::ucfirst($driver); if (class_exists($class)) { return $class; } break; } } throw new Horde_Exception('"' . $driver . '" driver (for ' . $base . ' not found).'); } }