Saves all the PPS's WKs

@access private
@param array $raList Reference to an array with all PPS's
340261
function _savePps(&$raList) 
    {
        // Save each PPS WK
        for ($i = 0; $i < count($raList); $i++) {
            fwrite($this->_FILEH_, $raList[$i]->_getPpsWk());
        }
        // Adjust for Block
        $iCnt = count($raList);
        $iBCnt = $this->_BIG_BLOCK_SIZE / OLE_PPS_SIZE;
        if ($iCnt % $iBCnt) {
            for ($i = 0; $i < (($iBCnt - ($iCnt % $iBCnt)) * OLE_PPS_SIZE); $i++) {
                fwrite($this->_FILEH_, "\x00");
            }
        }
    }
115312
protected function fill_collections($list=""){
		$names=explode(",",$list);
		for ($i=0; $i < sizeof($names); $i++) { 
			$name = $this->resolve_parameter($names[$i]);
			if (!array_key_exists($name,$this->options)){
				$this->options[$name] = new DistinctOptionsConnector($this->get_connection(),$this->names["db_class"]);
				$c = new DataConfig($this->config);
				$r = new DataRequestConfig($this->request);
				$c->minimize($name);
				
				$this->options[$name]->render_connector($c,$r);
			} 
			
			$this->extra_output.="<coll_options for='{$names[$i]}'>";
			if (!is_string($this->options[$name]))
				$this->extra_output.=$this->options[$name]->render();
			else
				$this->extra_output.=$this->options[$name];
			$this->extra_output.="</coll_options>";
		}
	}
521272
public function updateList(DataList &$list)
    {
        if ($this->isVersioned()) {
            
            if ($filter = $this->getFilter($list)) {
                $list = $filter->apply();
            }
            
        }
    }
768990
protected function savePriceListValue()
    {
        if (empty($this->arSavedPriceList)) {
            return;
        }

        foreach ($this->arSavedPriceList as $iPriceTypeID => $arPriceData) {
            if (empty($iPriceTypeID)) {
                continue;
            }

            $this->savePriceValue($iPriceTypeID, array_get($arPriceData, 'price'), array_get($arPriceData, 'old_price'));
        }
    }
185117
public function saveList($list, $type = null, $primary = null, $query = [ ], $vars = []) {
        $data = [
            'list' => $list,
            'type' => $type,
            'primary' => $primary ? 1 : 0,
            'query' => $query,
            'vars' => $vars,
        ];
        return $this->apiPost('list', $data);
    }
628473
protected function prepareListPage(array &$list)
    {
        foreach ($list as &$item) {
            $this->setItemUrlEntity($item, $this->store, 'page');
        }
    }
881083
public function savedList($className, $count, $attributeOverrides = array())
    {
        $list = array();

        for ($i = 0; $i < $count; $i++)
        {
            $list[] = $this->saved($className, $attributeOverrides);
        }

        return $list;
    }
647384
protected function prepareListLibrary(array &$list)
    {
        foreach ($list as &$item) {
            $item['status'] = empty($item['errors']);
            $item['has_dependencies'] = !empty($item['requires']) || !empty($item['required_by']);
        }
    }
1077073
protected function formatDataList(DataList $dataList)
    {
        $formattedDataListMap = array();

        foreach ($dataList as $dataObject) {
            $formattedDataObjectMap = $this->formatDataObject($dataObject);
            if ($formattedDataObjectMap) {
                array_push($formattedDataListMap, $formattedDataObjectMap);
            }
        }

        return $formattedDataListMap;
    }
358691
public function addAll(ArrayList $arrayList): bool {
        $added = false;
        foreach ($arrayList as $value) {
            $added |= $this->add($value);
        }
        return $added;
    }
297916
public function addCachedField($arFieldList)
    {
        if (empty($arFieldList)) {
            return;
        }

        if (empty($this->cached) || !is_array($this->cached)) {
            $this->cached = [];
        }

        if (is_string($arFieldList)) {
            $arFieldList = [$arFieldList];
        }

        $this->cached = array_merge($this->cached, $arFieldList);
        $this->cached = array_unique($this->cached);
    }
835980
protected function includeRest(array $list)
    {
        $otherItemsIndex = false;
        if ($this->restKey) {
            $otherItemsIndex = array_search($this->restKey, $this->priorities);
        }
        if ($otherItemsIndex !== false) {
            array_splice($this->priorities, $otherItemsIndex, 1, $list);
        } else {
            // Otherwise just jam them on the end
            $this->priorities = array_merge($this->priorities, $list);
        }
    }
1334808
function save( array $items ) {

		foreach ( $items as $item ) {
			if ( isset( $item['blogs_id'] ) ) {
				$this->saveBook( $this->userId, $item );
			}
		}
	}
1329817
protected function prepareMethodsCheckout(array &$list)
    {
        foreach ($list as &$item) {
            if (isset($item['module']) && isset($item['image'])) {
                $path = GC_DIR_MODULE . "/{$item['module']}/{$item['image']}";
                $item['image'] = $this->url(gplcart_path_relative($path));
            }
        }
    }
534792
function _storeArray($elAry)
    {
        // where should we put this element...
        if (is_array($this->_currentGroup) && ('group' != $elAry['type'])) {
            $this->_currentGroup['elements'][] = $elAry;
        } elseif (isset($this->_currentSection)) {
            $this->_ary['sections'][$this->_currentSection]['elements'][] = $elAry;
        } else {
            $this->_ary['elements'][] = $elAry;
        }
    }
1117785
protected function saveAllKeywordsToFiles($lastUpdate = null)
    {
        if ($lastUpdate === null) {
            $lastUpdate = time();
        }

        $this->saveKeywordsToFile($this->whitelist, $this->whitelistCacheFilePath, $lastUpdate);
        $this->saveKeywordsToFile($this->blacklist, $this->blacklistCacheFilePath, $lastUpdate);
    }
164168
protected function prepareListFieldValue(array &$list)
    {
        foreach ($list as &$item) {
            $this->setItemThumb($item, $this->image, array('placeholder' => false));
        }
    }