Return a result.

@return  mixed
549457
public function result()
    {
        $this->fill();
        return $this->results->isEmpty() ? null : $this->results->dequeue();
    }
1154876
public function result() {
    /* @var $criteria \Phalcon\Mvc\Model\Criteria */
    
    $criteria = $this->newCriteria();
    
    if (count($this->selection))
      $criteria->columns($this->selection);
    
    if ($this->match)
      $this->addConditionsFromArray($this->match);
    
    if ($this->searchstr && $text=$this->getSelect('text'))
      $this->addconditions(
          $text." LIKE :searchstr:",
          ['searchstr'=>"%{$this->searchstr}%"]
      );
    
    if (is_array($this->conditions) && count($this->conditions))
      foreach ($this->conditions as $condition=>$bind)
        $criteria->andWhere($condition,$bind);
      
    if ($this->getOrder())
      $criteria->orderBy($this->getOrder());
    
    
    // limit/offset
    if ($this->offset)
      $criteria->limit($this->limit,$this->offset);
    
    elseif ($this->page)
      $criteria->limit($this->limit,($this->page-1) * $this->limit);
    
    elseif ($this->limit)
      $criteria->limit($this->limit);
    
    
    $this->_fireEvent('beforeCriteriaExecute',$criteria);
    $resultset = $criteria->execute();
    
    $this->_fireEvent('beforeResultsetToArray',$resultset);
    $result    = $resultset->toArray();
    
    $modified  = $this->_fireEvent('AfterResultsetToArray',$result);
    
    $this->result = is_array($modified) ? $modified : $result;
    return $this->result;
  }
1301699
public function getResult()
    {
        if ($this->autoFormat && ! empty($this->object)) {
            return $this->object;
        }

        return $this->content;
    }
1166672
public function loadResult()
    {
        // Get the first row from the result set as an array.
        $row = $this->fetchArray();

        if ($row) {
            $row = $row[0];
        }

        // Free up system resources and return.
        $this->freeResult();

        return $row;
    }
843664
public function getResults()
    {
        if(!$this->statManager->checkStatus()){
            $this->runValidation($this->options);
        }
        return $this->statManager->getStatus();
    }
1207945
protected function getResult()
    {
        $result = new TestResult($this->eventEmitter);
        $this->getLoader()->load($this->configuration->getPath());
        $this->factory->createComposite($this->configuration->getReporters());
        $this->runner->run($result);

        if ($result->getFailureCount() > 0) {
            return 1;
        }

        if ($result->isFocusedByDsl()) {
            return 2;
        }

        return 0;
    }
716421
public function getResult()
    {
        $result = curl_getinfo($this->resource);

        if (curl_errno($this->resource)) {
            $result['error'] = curl_error($this->resource);
        }

        return [
            'url' => isset($result['url']) ? $result['url'] : null,
            'statusCode' => isset($result['http_code']) ? $result['http_code'] : null,
            'contentType' => isset($result['content_type']) ? $result['content_type'] : null,
            'info' => $result,
            'content' => $this->body,
            'headers' => $this->headers,
            'data' => $this->data,
        ];
    }
143135
public function getResults()
    {
        if (is_null($this->_resultsCache)) {
            $this->_resultsCache = call_user_func($this->getMapper());

            if ($this->prefetchRelatedLookups && !$this->_prefetchRelatedDone) {
                $this->_prefetchRelatedObjects();
            }
        }

        return $this->_resultsCache;
    }
908436
private function result()
    {

        $ok = false;
        if (!$this->ok) {
            $ok = $this->onError();
        }
        if (!$ok) {
            if (!$this->ok) {

// If not valid, return an error message to the tool consumer if a return URL is provided
                if (!empty($this->returnUrl)) {
                    $errorUrl = $this->returnUrl;
                    if (strpos($errorUrl, '?') === false) {
                        $errorUrl .= '?';
                    } else {
                        $errorUrl .= '&';
                    }
                    if ($this->debugMode && !is_null($this->reason)) {
                        $errorUrl .= 'lti_errormsg=' . urlencode("Debug error: $this->reason");
                    } else {
                        $errorUrl .= 'lti_errormsg=' . urlencode($this->message);
                        if (!is_null($this->reason)) {
                            $errorUrl .= '&lti_errorlog=' . urlencode("Debug error: $this->reason");
                        }
                    }
                    if (!is_null($this->consumer) && isset($_POST['lti_message_type']) && ($_POST['lti_message_type'] === 'ContentItemSelectionRequest')) {
                        $formParams = array();
                        if (isset($_POST['data'])) {
                            $formParams['data'] = $_POST['data'];
                        }
                        $version = (isset($_POST['lti_version'])) ? $_POST['lti_version'] : self::LTI_VERSION1;
                        $formParams = $this->consumer->signParameters($errorUrl, 'ContentItemSelection', $version, $formParams);
                        $page = self::sendForm($errorUrl, $formParams);
                        echo $page;
                    } else {
                        header("Location: {$errorUrl}");
                    }
                    exit;
                } else {
                    if (!is_null($this->errorOutput)) {
                        echo $this->errorOutput;
                    } else if ($this->debugMode && !empty($this->reason)) {
                        echo "Debug error: {$this->reason}";
                    } else {
                        echo "Error: {$this->message}";
                    }
                }
            } else if (!is_null($this->redirectUrl)) {
                header("Location: {$this->redirectUrl}");
                exit;
            } else if (!is_null($this->output)) {
                echo $this->output;
            }
        }

    }
1071704
public function getResults()
    {
        if (null === $this->results) {
            $this->results = $this->getQuery()
                ->find($this->con);
        }

        return $this->results;
    }
342642
public function results()
    {

        if ($this->classname) {
            $orderAdapter = app(\Antares\Datatables\Adapter\OrderAdapter::class);
            $orderAdapter->setClassname($this->classname);
            $orderAdapter->setEngineInstance($this);

            $groupsFilterAdapter = app(\Antares\Datatables\Adapter\GroupsFilterAdapter::class);
            $groupsFilterAdapter->setClassname($this->classname);
            $groupsFilterAdapter->setEngineInstance($this);
        }
        return $this->query->get();
    }
254865
public function getSingleResult()
    {
        $originalLimit = $this->limit;
        $originalUseIdentifierKeys = $this->useIdentifierKeys;

        $this->reset();
        $this->limit(1);
        $this->setUseIdentifierKeys(false);

        $result = current($this->toArray()) ?: null;

        $this->reset();
        $this->limit($originalLimit);
        $this->setUseIdentifierKeys($originalUseIdentifierKeys);

        return $result;
    }
1311621
public function getResults()
    {
        if ($this->_children === null) {
            $this->_children = $this->getFreshResults();
        }
        return $this->_children;
    }
53329
public function getRefundResult()
    {
        $responseVariables = get_object_vars($this->getResponse());
        if (!array_key_exists('refundResult', $responseVariables)) {
            return new RefundResult();
        }
        $refundResult = $responseVariables['refundResult'];
        if (!($refundResult instanceof RefundResult)) {
            return new RefundResult();
        }
        return $refundResult;
    }
672144
protected function popResult()
    {
        $result = $this->result;
        $this->result = array_pop($this->resultStack);
        return $result;
    }
1300966
public function getResults(){
        $results = $this->get();
        if(!$results)
            return [];
        foreach($results as $index => $resultData){
            $return[$index]['location'] = implode(',',$resultData['geometry']['location']);
            $return[$index]['name'] = $resultData['name'];
            $return[$index]['vicinity'] = $resultData['vicinity'];
        }
        return $return;
    }
1006169
public function getResult()

    {
        $bodyParams = $this->attributes;


        $response = $this->_connection->post(
            Urls::URL_TRAVERSAL,
            $this->getConnection()->json_encode_wrapper($bodyParams)
        );

        return $response->getJson();
    }