删除记录
@return IResult
188143
public function delete(): IResult
    {
        $query = static::query($this);
        $query = $this->parseWhereId($query);

        // 删除前
        $this->trigger(ModelEvents::BEFORE_DELETE, [
            'model' => $this,
            'query' => $query,
        ], $this, \Imi\Model\Event\Param\BeforeDeleteEventParam::class);

        if(!isset($query->getOption()->where[0]))
        {
            throw new \RuntimeException('use Model->delete(), primary key can not be null');
        }
        $result = $query->delete();

        // 删除后
        $this->trigger(ModelEvents::AFTER_DELETE, [
            'model' => $this,
            'result'=> $result,
        ], $this, \Imi\Model\Event\Param\AfterDeleteEventParam::class);

        // 子模型删除
        ModelRelationManager::deleteModel($this);

        return $result;
    }
895397
public function getResult () : Result
    {
        // Cache
        if ( $this->_Result === null ) :
            $this->calcPossibleRanking();
            $this->calcRankingScore();
            $this->makeRanking();
            $this->conflictInfos();
        endif;

        // Return
        return $this->_Result;
    }
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();
    }
484096
public function getResult()
    {
        $query = $this->getQuery();

        if (method_exists($query, 'getResult')) {
            return $query->getResult();
        }

        return $query->execute();
    }
188423
public function executeQuery(): IResultSet {
        
        if (!strlen($this->sql) > 0) {
            throw new \Exception('Error sentencia sql no valida');
        }
        
        $temp = $this->conect->query($this->sql);
        $this->sql = "";
        
        if ($temp == null) {
            throw new \Exception('Error no se pudo encontrar nada en la base de datos');
        }
       
        return new ResultSetMYSQL($temp);
    }
309152
public function count()
    {
        if ($this->_resultsCount === null) {
            $this->_resultsCount = $this->_performCount();
        }

        return $this->_resultsCount;
    }
1373835
public function getResults()
    {
        return $this->hasResults() ? $this->adapter->getResults($this->getOffset(), $this->limit) : [];
    }
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;
    }
801885
public function getResults()
    {
        if ($this->getParent()->{$this->morphType} === $this->morphName) {
            return $this->query->first();
        }
    }
412709
public function getResult()
    {
        $result = $this->mongo->aggregate($this->getCollectionName(), $this->getPipeline());
        return $result->toArray();
    }
1116922
public function result()
    {
        $string = "";
        while ($this->count > 0) {
            $string .= $this->util->cursor->startOfCurrentLine();
            $string .= $this->util->cursor->deleteCurrentLine();
            --$this->count;

            $string .= $this->util->cursor->up();
        }

        $string .= $this->util->cursor->down();

        return $string;
    }
571365
public function get(): \Assurrussa\GridView\Helpers\GridViewResult
    {
        $gridViewResult = $this->_getGridView();
        $gridViewResult->data = $this->pagination->get($this->page, $this->limit);
        $gridViewResult->pagination = $this->_getPaginationRender();
        $gridViewResult->simple = false;

        return $gridViewResult;
    }
992045
public function getResult()
	{
		$result = $this->error ?? $this->result ?? null;
		if ($result === null) {
			return null;
		}

		return Dumper::toHtml($result, [
			Dumper::COLLAPSE => true
		]);
	}
843664
public function getResults()
    {
        if(!$this->statManager->checkStatus()){
            $this->runValidation($this->options);
        }
        return $this->statManager->getStatus();
    }
751627
public function verifyReturn(){
        if(empty($_GET)) {//判断POST来的数组是否为空
            return false;
        }
        else {
            //生成签名结果
            $isSign = $this->getSignVeryfy($_GET, $_GET["sign"]);
            //获取支付宝远程服务器ATN结果（验证是否是支付宝发来的消息）
            $responseTxt = 'true';
            if (! empty($_GET["notify_id"])) {$responseTxt = $this->getResponse($_GET["notify_id"]);}

            //写日志记录
            //if ($isSign) {
            //	$isSignStr = 'true';
            //}
            //else {
            //	$isSignStr = 'false';
            //}
            //$log_text = "responseTxt=".$responseTxt."\n return_url_log:isSign=".$isSignStr.",";
            //$log_text = $log_text.createLinkString($_GET);
            //logResult($log_text);

            //验证
            //$responsetTxt的结果不是true，与服务器设置问题、合作身份者ID、notify_id一分钟失效有关
            //isSign的结果不是true，与安全校验码、请求时的参数格式（如：带自定义参数等）、编码格式有关
            if (preg_match("/true$/i",$responseTxt) && $isSign) {
                return true;
            } else {
                return false;
            }
        }
    }
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;
  }
782554
protected function getQueryResultRow()
    {
        if ($this->fetchedResults === null) {
            $this->fetchedResults = $this
                ->getQueryResult()
                ->fetchAll();
        }

        return array_shift($this->fetchedResults);
    }