uawdijnntqw1x1x1
IP : 216.73.216.136
Hostname : webd009.cluster130.gra.hosting.ovh.net
Kernel : Linux webd009.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
pressec
/
www
/
ads--temp-pour-eviter-les-spams
/
lib
/
xajax
/
lib
/
..
/
.
/
..
/
OA
/
ServiceLocator.php
/
/
<?php /* +---------------------------------------------------------------------------+ | Revive Adserver | | http://www.revive-adserver.com | | | | Copyright: See the COPYRIGHT.txt file. | | License: GPLv2 or later, see the LICENSE.txt file. | +---------------------------------------------------------------------------+ */ /** * A class that allows services to be globally registered, so that they * can be accessed by any class that needs them. Also allows Mock Objects * to be easily used as replacements for classes during testing. * * @package OpenX */ class OA_ServiceLocator { var $aService = array(); /** * A method to return a singleton handle to the service locator class. * * @return OA_ServiceLocator */ function &instance() { static $oInstance; if (!$oInstance) { $oInstance = new OA_ServiceLocator(); } return $oInstance; } /** * A method to register a service with the service locator class. * * @param string $serviceName The name of the service being registered. * @param mixed $oService The object (service) being registered. * @return boolean Always returns true. */ function register($serviceName, &$oService) { $this->aService[$serviceName] =& $oService; return true; } /** * A method to remove a registered service from the service locator class. * * @param string $serviceName The name of the service being de-registered. */ function remove($serviceName) { unset($this->aService[$serviceName]); } /** * A method to return a registered service. * * @param string $serviceName The name of the service required. * @return mixed Either the service object requested, or false if the * requested service was not registered. */ function &get($serviceName) { if (isset($this->aService[$serviceName])) { return $this->aService[$serviceName]; } $false = false; return $false; } /** * A method to return a registered service. * * @static * @param string $serviceName The name of the service required. * @return mixed Either the service object requested, or false if the * requested service was not registered. */ function &staticGet($serviceName) { $oServiceLocator =& OA_ServiceLocator::instance(); return $oServiceLocator->get($serviceName); } } ?>
/home/pressec/www/ads--temp-pour-eviter-les-spams/lib/xajax/lib/.././../OA/ServiceLocator.php