@param LoopResult $loopResult

@return LoopResult
969205
public function parseResults(LoopResult $loopResult)
    {
        foreach ($loopResult->getResultDataCollection() as $category) {
            $loopResultRow = new LoopResultRow($category);

            $loopResultRow
                ->set("ID", $category->getId())
                ->set("TITLE", $category->getVirtualColumn("i18n_TITLE"))
                ->set("POSITION", $category->getPosition())
            ;

            $this->addOutputFields($loopResultRow, $category);
            $loopResult->addRow($loopResultRow);
        }

        return $loopResult;
    }
395412
public function getContent($rowResult)
    {
        if ($this->callManager($rowResult) === false) {
            return '';
        }

        return $this->builder->render($this->template);
    }
1345497
public function dispatch($rawResult)
    {
        $this->arrayResult = json_decode($rawResult, true);
        $result = parent::dispatch($this->arrayResult);
        $this->rawResult = $rawResult;

        return $result;
    }
623760
public ExecutionResult withResult(Object result) {
    return new ExecutionResult(result, null, nonResult, waitNanos, true, true, successAll);
  }
447703
public function render(QueryResultInterface $objects, $as, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
    {
        $response = $this->initiateSubRequest();
        return $response->getContent();
    }
958197
protected function mapObject($databaseResult)
    {
        foreach ($databaseResult as $column => $value) {
            if (!empty($this->mapping[$column])) {
                list($variable, $modifier) = $this->splitVariableWithModifier($this->mapping[$column]);

                $this->$variable = $this->getMappedValue($databaseResult, $column, $this->mapping[$column]);
            } else {
                $this->$column = $value;
            }
        }
    }
470860
public function parseResults(LoopResult $loopResult)
    {
        /** @var \Thelia\Model\ProductSaleElementsProductDocument $productSaleElementDocument */
        foreach ($loopResult->getResultDataCollection() as $productSaleElementDocument) {
            $row = new LoopResultRow($productSaleElementDocument);

            $row
                ->set("ID", $productSaleElementDocument->getId())
                ->set("PRODUCT_SALE_ELEMENTS_ID", $productSaleElementDocument->getProductSaleElementsId())
                ->set("PRODUCT_DOCUMENT_ID", $productSaleElementDocument->getProductDocumentId())
            ;

            $this->addOutputFields($row, $productSaleElementDocument);
            $loopResult->addRow($row);
        }

        return $loopResult;
    }
235054
public function parseResults(LoopResult $loopResult)
    {
        /** @var DealerShedules $schedules */
        foreach ($loopResult->getResultDataCollection() as $schedules) {
            $loopResultRow = new LoopResultRow($schedules);

            $loopResultRow
                ->set('ID', $schedules->getId())
                ->set('DEALER_ID', $schedules->getDealerId())
                ->set('DAY', $schedules->getDay())
                ->set('DAY_LABEL', $this->getDayLabel($schedules->getDay()))
                ->set('BEGIN', $schedules->getBegin())
                ->set('END', $schedules->getEnd())
                ->set('PERIOD_BEGIN', $schedules->getPeriodBegin())
                ->set('PERIOD_END', $schedules->getPeriodEnd());


            $loopResult->addRow($loopResultRow);
        }

        return $loopResult;
    }
1113199
protected function ParseXMLResponse($sResult)
    {
        $oXMLResponse = new SimpleXMLElement($sResult);
        foreach ($oXMLResponse->attributes() as $sAttributeName => $sAttributeValue) {
            $sAttributeName = strtoupper($sAttributeName);
            $this->aXMLResponseData[$sAttributeName] = (string) $sAttributeValue;
        }
        if (isset($oXMLResponse->HTML_ANSWER)) {
            $this->aXMLResponseData['HTML_ANSWER'] = (string) $oXMLResponse->HTML_ANSWER;
        }
    }
966019
public function join(ModelResult $modelResult)
    {
        foreach ($modelResult->models as $model) {
            $this->models[] = $model;
        }

        return $this;
    }
377724
public static function fromSearchResult($searchResult)
    {
        $item            = [];
        $item['id']      = $searchResult['id']['videoId'];
        $item['etag']    = null;
        $item['snippet'] = $searchResult['snippet'];
        
        return new self($item);
    }
1027793
public function newClient(LoopInterface $loop = null)
    {
        return new Client($this->getConfig('realm'), $this->getRegisteredProviders(), $loop);
    }
1204151
public function postSelect(StatementInterface $statement, ResultInterface $result, ResultSetInterface $resultSet)
    {
        if ($this->getDmsColumns())
            // We have used the query with presented Predefined DMS Columns
            // Nothing to do
            return;

        $storedValues = $this->getStoredValues();
        $pkColumn     = $storedValues['pk'];

        $totalResultSet = array();
        foreach($resultSet as $rc)
        {
            if (!$rc instanceof iDataSetConveyor)
                throw new \Exception(sprintf(
                    'ResultSet must instance of iDataSetConveyor to DmsFeature interact to. "%s" given.'
                    , get_class($rc)
                ));

            $rc = $rc->toArray();

            $pk = $rc[$pkColumn]; // get pk column value
            foreach ($rc as $c => $v) {
                // iterate trough result containing duplicated rows because of join over dms values
                if ($c == 'dms__content' || $c == 'dms__field')
                    // dms virtual columns avoided and set as field->content
                    continue;

                if ($c == $pkColumn
                    && (!in_array($pkColumn, $storedValues['columns'])
                        && !in_array('*', $storedValues['columns'])
                    )
                )
                    continue;


                $totalResultSet[$pk][$c] = $v;
            }

            if (isset($rc['dms__content']) && isset($rc['dms__field'])) {
                if (in_array($rc['dms__field'], $storedValues['columns'])
                    || in_array('*', $storedValues['columns'])
                )
                {
                    $column = $rc['dms__field'];
                    $value  = $rc['dms__content'];
                    $totalResultSet[$pk][$column] = $value;
                }

                unset($rc['dms__field']);
                unset($rc['dms__content']);
            }
        }

        $resultSet->initialize($totalResultSet);
    }
1192417
function loopTask(arrayResults) {
      arrayResults = Array.prototype.map.call(arrayResults, wrap);
      return parallel(arrayResults).call(this);
    }
1249786
public function setFirstResult($firstResult)
    {
        $this->firstResult = $firstResult;
        $this->state       = self::STATE_DIRTY;

        return $this;
    }
772611
public function parseResults(LoopResult $loopResult)
    {
        /** @var DealerContactInfo $contact */
        foreach ($loopResult->getResultDataCollection() as $contact) {
            $loopResultRow = new LoopResultRow($contact);

            $loopResultRow
                ->set('ID', $contact->getId())
                ->set('CONTACT_ID', $contact->getContactId())
                ->set('CONTACT_TYPE', $contact->getContactType())
                ->set('CONTACT_TYPE_ID', $contact->getContactTypeId());

            if ($contact->hasVirtualColumn('i18n_VALUE')) {
                $loopResultRow->set("VALUE", $contact->getVirtualColumn('i18n_VALUE'));
            }

            $loopResult->addRow($loopResultRow);
        }

        return $loopResult;
    }
764105
public function getInputsFromResult($inputResult)
    {
        $input_array = [];

        if (!isset($inputResult['inputs'])) {
            throw new \Exception('Inputs Not Found');
        }

        foreach ($inputResult['inputs'] as $rawInput) {
            $input = new Input($rawInput);
            $input_array[] = $input;
        }

        return $input_array;
    }