public static function getInstance() { if (self::$instance == false) { self::$instance = new AdProviderGamePro(); } return self::$instance; }
public function getProviderFromId($provider_id) { switch (strtolower($this->providers[$provider_id])) { case 'dart': return AdProviderDART::getInstance(); case 'openx': return AdProviderOpenX::getInstance(); case 'google': return AdProviderGoogle::getInstance(); case 'gam': return AdProviderGAM::getInstance(); case 'pubmatic': return AdProviderPubMatic::getInstance(); case 'athena': return AdProviderAthena::getInstance(); case 'contextweb': return AdProviderContextWeb::getInstance(); case 'dartmobile': return AdProviderDARTMobile::getInstance(); case 'liftium': return AdProviderLiftium::getInstance(); case 'addriver': return AdProviderAdDriver::getInstance(); case 'liftdna': return AdProviderLiftDNA::getInstance(); case 'dartgp': return AdProviderDARTGP::getInstance(); case 'adengine2': return AdProviderAdEngine2::getInstance(); case 'gamepro': return AdProviderGamePro::getInstance(); case 'null': return new AdProviderNull('Slot disabled in WF', false); default: return new AdProviderNull('Unrecognized provider id', true); } }