Set the from and size (paging) of the results

@param integer $size
@param integer $from
@return QueryBuilder|static|self
427807
public function page($size, $from = null) {
        if ($from) {
            $this->from($from);
        }
        if ($size) {
            $this->size($size);
        }
        return $this;
    }
1360444
private function setPage($page, $pageSize)
    {
        $this->subscriptionCollection
            ->setCurPage($page)
            ->setPageSize($pageSize);
        return $this;
    }
1067199
public function setWriteBuffer($size)
    {
        if (!is_resource($this->fp)) {
            return $this->raiseError('not connected');
        }

        $returned = stream_set_write_buffer($this->fp, $size);
        if ($returned === 0) {
            return true;
        }

        return $this->raiseError('Cannot set write buffer.');
    }
1371400
protected function setMinSize($minSize)
    {
        $this->minSize = $this->toBytes($minSize);
        $this->minSizeString = $this->fromBytes($this->minSize);
        return $this;
    }
642600
public function setSize($size = null) {
        $this->_size = is_int($size)? $size : self::DEFAULT_SIZE;
    }
1001366
public function setSize($size) {
		if (is_int($size)) {
			return $this->addToPropertyUnique("class", CssRef::sizes("pagination")[$size], CssRef::sizes("pagination"));
		}
		if(!PhalconUtils::startsWith($size, "pagination-") && $size!=="")
			$size="pagination-".$size;
		return $this->addToPropertyCtrl("class", $size, CssRef::sizes("pagination"));
	}
178386
public function setSize(int $size) : self
    {
        $this->getField()->addAttribute('size', (string) $size);

        return $this;
    }
844585
public static function size(string $name, int $size = 12)
    {
        $instance = new static();

        $instance->group['name'] = $name;
        $instance->group['size'] = $size;

        return $instance;
    }
1063516
public function decreaseTo($size) {
		$currentSize = max($this->height, $this->width);
		if ($currentSize <= $size)
			return;
		$ratio = round($currentSize / $size, 3);
		$this->resize($this->width / $ratio, $this->height / $ratio);
		return $this;
	}
1304330
public function setWatermarkSize($size)
    {
        if (is_array($size)) {
            $this->setWatermarkWidth($size['width'])->setWatermarkHeight($size['height']);
        }
        return $this;
    }
1230391
public function setPageSize($pageSize)
    {
        $formattedPageSize = ucfirst(strtolower($pageSize));

        $this->checkPageSize($formattedPageSize);

        $this->pageSize = $formattedPageSize;

        return $this;
    }
572690
public function page($size = null, $page = null)
    {
        if ($size === null) {
            $size = (int)$this->request->get('size', 10);
        }

        if ($page === null) {
            $page = (int)$this->request->get('page', 1);
        }

        $this->limit($size, ($page - 1) * $size);

        return $this;
    }
1204683
public static function fromString($resource = '', $size = null)
    {
        $stream = fopen('php://temp', 'r+');

        if ($resource !== '') {
            fwrite($stream, $resource);
            fseek($stream, 0);
        }

        return new self($stream, $size);
    }
243083
public function paging($pageNum, $pageSize) {
        $offset = ($pageNum - 1) * $pageSize;
        $this->statementContext->setLimit("{$offset}, {$pageSize}");
        return $this;
    }
1306744
public function setSize($size) {
		if (is_int($size)) {
			return $this->addToProperty("class", CssRef::sizes("btn-group")[$size]);
		}
		return $this->addToPropertyCtrl("class", $size, CssRef::sizes("btn-group"));
	}
5316
public static function instance($size = null, $order = 'id', $dir = 'desc'): Page
    {
        static $handle;
        if (!$handle) {
            $handle = new self ($size, $order, $dir);
        }
        return $handle;
    }
986973
public function from($from)
    {
        $this->from = is_object($from) ? $from->getKey() : $from;

        return $this;
    }