loadBargain loads 'Bargain' rss data

@access public

@return void
334102
public function loadBargain()
    {
        if (($this->_aChannel = $this->_loadFromCache(self::RSS_BARGAIN))) {
            return;
        }

        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->loadActionArticles('OXBARGAIN', \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iRssItemsCount'));

        $oLang = Registry::getLang();
        $this->_loadData(
            self::RSS_BARGAIN,
            $this->getBargainTitle(),
            $oLang->translateString('BARGAIN_PRODUCTS', $oLang->getBaseLanguage()),
            $this->_getArticleItems($oArtList),
            $this->getBargainUrl()
        );
    }
517000
public function load($arr) {
        foreach($arr as $key=>$value) {
            if(array_key_exists($key, self::$KEYS)) {
                if($this->valid(self::$KEYS[$key], $value)) {
                    $this->$key = $value;
                }
            }
        }
    }
502781
public function load()
    {
        $matchesInfo = $this->_getMatchesIdsFromMatches();
        $matchesIds = array();
        foreach ($matchesInfo as $matchInfo) {
            array_push($matchesIds, $matchInfo['match_id']);
        }
        if (count($matchesIds) === 0) {
            return array();
        }
        $slotsInfo = $this->_loadSlotsInfo($matchesIds);
        $picksBansFormattedInfo = $this->_loadPicksBansInfo($matchesIds);

        $slotsIds = array();
        foreach ($slotsInfo as $slotInfo) {
            array_push($slotsIds, $slotInfo['id']);
        }

        $abilitiesUpgradeFormattedInfo = $this->_loadAbilityUpgradesInfo($slotsIds);
        $additionalUnitsFormattedInfo = $this->_loadAdditionalUnitsInfo($slotsIds);

        // we load all matches info and now need to make proper match objects
        $matches = array();
        foreach ($matchesInfo as $matchInfo) {
            $match = new Match();
            $match->setArray($matchInfo);
            $slots_count = 0;
            foreach ($slotsInfo as $slotInfo) {
                if ($slots_count > 9) {
                    // match can't has more than 10 slots
                    break;
                }
                if ($slotInfo['match_id'] == $match->get('match_id')) {
                    $slot = new slot();
                    $slot->setArray($slotInfo);
                    if (array_key_exists($slot->get('id'), $abilitiesUpgradeFormattedInfo)) {
                        $slot->setAbilitiesUpgrade($abilitiesUpgradeFormattedInfo[$slot->get('id')]);
                    }
                    if (array_key_exists($slot->get('id'), $additionalUnitsFormattedInfo)) {
                        $slot->setAdditionalUnitItems($additionalUnitsFormattedInfo[$slot->get('id')]);
                    }
                    $match->addSlot($slot);
                    $slots_count++;
                }
            }
            if (array_key_exists($match->get('match_id'), $picksBansFormattedInfo)) {
                $match->setAllPickBans($picksBansFormattedInfo[$match->get('match_id')]);
            }
            $matches[$match->get('match_id')] = $match;
        }
        return $matches;
    }
1275352
public function build()
    {
        if (! $view = $this->getRSSView()) {
            return;
        }

        $pageContent = $this->viewFactory->make($view, $this->viewsData)->render();

        $this->filesystem->put(
            sprintf('%s/%s', KATANA_PUBLIC_DIR, 'feed.rss'),
            $pageContent
        );
    }
1259768
public function load(): void
    {
        try {
            $keys = $this->cache->get(self::INDEXING_KEY);
            if ($keys instanceof Keys) {
                $this->keys = $keys;
                return;
            }
        } catch (CacheException $e) {
            trigger_error($e->getMessage(), E_USER_WARNING);
        }

        $this->keys = new Keys();
    }
1224073
public function load() {
		$this->load_comments = $this->it_has( 'load_coments', $this->options )
			? $this->options['load_comments']
			: false;
		$this->enqueue_assets();
	}
1136304
public function load()
    {
      $args = Ensure::Input(func_get_args());
      $props = $args->get();
      foreach ($props as $k => $prop)
        $this->{$k} = $prop;
    }
1108156
public function load()
    {
        foreach ($this->definitions as $tag => $definition) {
            $this->extendContainer($tag, $definition);
        }
    }
83028
final protected function _loadData()
    {
        if (!$this->isLoaded()) {
            $this->_object_set = new ArrayObject();
            foreach ($this->_getData() as $object) {
                $this->insert($object);
            }
        }
    }
1031549
public function loadData()
	{
		if($this->_model!==null)
		{
			$class=CHtml::modelName($this->_model);
			if(strcasecmp($this->getRoot()->method,'get'))
			{
				if(isset($_POST[$class]))
					$this->_model->setAttributes($_POST[$class]);
			}
			elseif(isset($_GET[$class]))
				$this->_model->setAttributes($_GET[$class]);
		}
		foreach($this->getElements() as $element)
		{
			if($element instanceof self)
				$element->loadData();
		}
	}
148274
public function load() {
		if ( true === $this->is_admin_loaded ) {
			return;
		}

		$this->loader->load();
		$this->is_admin_loaded = true;
	}
1132577
private function load()
    {
        $this->registry[$this->section] = $this->getDrupalCommonConnector()->variable_get($this->section, array());
    }
166137
private function load()
    {
        if (\count($this->attributes)) {
            return;
        }

        $sessionBag         = $this->session->getBag($this->getSessionBagKey());
        $databaseSessionBag = $this->session->getBag($this->getDatabaseSessionBagKey());

        $this->attributes = \array_merge(
            (array) $sessionBag->get($this->getScope()),
            (array) $databaseSessionBag->get($this->getScope())
        );
    }
395739
public function load_config() {
        $cfg = [];
        require __DIR__ . '/defaults.php';
        if (file_exists($this->config_path)) {
            require $this->config_path;
        }
        $this->data = $cfg;
    }
1311979
public function loadHttpData() {
		parent::loadHttpData();
		
		/** @var \Nette\Http\Request $request */
		$request = $this->getContainer()->getByType('\Nette\Http\Request');
		$this->token = $request->getPost($this->getHtmlName() . "-token");
	}
1317821
protected function load()
    {
        if ($this->loaded)
        {
            return;
        }

        $table = ORM::getTable(Eresus_Plugin_Registry::getInstance()->load('gallery'), 'Image');
        $q = $table->createSelectQuery();
        $e = $q->expr;

        $q->where(
            $e->lAnd(
                $e->eq('section', $q->bindValue($this->sectionId, null, PDO::PARAM_INT)),
                $e->eq('active', $q->bindValue(true, null, PDO::PARAM_BOOL)),
                $e->neq('groupId', 0)
            ))->
            orderBy('groupId');

        $this->items = $table->loadFromQuery($q);

        $this->loaded = true;
    }
567287
public function load()
    {
        if (null === $this->loaded) {
            return;
        }

        $this->loaded = null;

        /** @var $cache StorageInterface */
        $cache      = $this->serviceLocator->get('BjyAuthorize\Cache');

        /** @var $cacheKeyGenerator callable */
        $cacheKeyGenerator  = $this->serviceLocator->get('BjyAuthorize\CacheKeyGenerator');
        $cacheKey           = $cacheKeyGenerator();

        $success    = false;
        $this->acl  = $cache->getItem($cacheKey, $success);

        if (!($this->acl instanceof Acl) || !$success) {
            $this->loadAcl();
            $cache->setItem($cacheKey, $this->acl);
        }

        $this->setIdentityProvider($this->serviceLocator->get('BjyAuthorize\Provider\Identity\ProviderInterface'));

        $parentRoles = $this->getIdentityProvider()->getIdentityRoles();

        $this->acl->addRole($this->getIdentity(), $parentRoles);
    }