public function findAll(int $limit = 0, int $offset = 0)
	{
		$builder = $this->builder();

		if ($this->tempUseSoftDeletes === true)
		{
			$builder->where($this->table . '.' . $this->deletedField, 0);
		}

		$row = $builder->limit($limit, $offset)
				->get();

		$row = $row->getResult($this->tempReturnType);

		$row = $this->trigger('afterFind', ['data' => $row, 'limit' => $limit, 'offset' => $offset]);

		$this->tempReturnType     = $this->returnType;
		$this->tempUseSoftDeletes = $this->useSoftDeletes;

		return $row['data'];
	}
public function findAll(int $limit = 0, int $offset = 0)
	{
		$builder = $this->builder();

		if ($this->tempUseSoftDeletes === true)
		{
			$builder->where($this->table . '.' . $this->deletedField, 0);
		}

		$row = $builder->limit($limit, $offset)
				->get();

		$row = $row->getResult($this->tempReturnType);

		$row = $this->trigger('afterFind', ['data' => $row, 'limit' => $limit, 'offset' => $offset]);

		$this->tempReturnType     = $this->returnType;
		$this->tempUseSoftDeletes = $this->useSoftDeletes;

		return $row['data'];
	}
public function findAll ( int $ limit = 0 , int $ offset = 0 ) { $ builder = $ this -> builder ( ) ; if ( $ this -> tempUseSoftDeletes === true ) { $ builder -> where ( $ this -> table . '.' . $ this -> deletedField , 0 ) ; } $ row = $ builder -> limit ( $ limit , $ offset ) -> get ( ) ; $ row = $ row -> getResult ( $ this -> tempReturnType ) ; $ row = $ this -> trigger ( 'afterFind' , [ 'data' => $ row , 'limit' => $ limit , 'offset' => $ offset ] ) ; $ this -> tempReturnType = $ this -> returnType ; $ this -> tempUseSoftDeletes = $ this -> useSoftDeletes ; return $ row [ 'data' ] ; }
Works with the current Query Builder instance to return
all results, while optionally limiting them.

@param integer $limit
@param integer $offset

@return array|null
Works with the current Query Builder instance to return all results while optionally limiting them .